readableElapsedTime() public static method

Returns a human readable elapsed time
public static readableElapsedTime ( float $microtime, string $format = null, $round = 3 ) : string
$microtime float
$format string The format to display (printf format)
return string
Example #1
0
 /**
  * @dataProvider timeProvider
  */
 public function testreadableElapsedTime($expected, $time)
 {
     $this->assertEquals($expected, Ubench::readableElapsedTime($time, '%.3f%s'));
 }