readableElapsedTime() public static méthode

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)
Résultat string
Exemple #1
0
 /**
  * @dataProvider timeProvider
  */
 public function testreadableElapsedTime($expected, $time)
 {
     $this->assertEquals($expected, Ubench::readableElapsedTime($time, '%.3f%s'));
 }