Permalink
Browse files

Add current().

  • Loading branch information...
1 parent ebd1aaa commit cb5bdb48a529b5452ec96986f7c760ee89a20128 @sebastianbergmann committed Nov 7, 2006
Showing with 5 additions and 0 deletions.
  1. +5 −0 PHPUnit/Util/Timer.php
View
@@ -69,6 +69,11 @@ public static function start()
array_push(self::$startTimes, microtime(TRUE));
}
+ public static function current()
+ {
+ return microtime(TRUE) - self::$startTimes[count(self::$startTimes)-1];
+ }
+
public static function stop()
{
return microtime(TRUE) - array_pop(self::$startTimes);

0 comments on commit cb5bdb4

Please sign in to comment.