diff --git a/src/Ubench.php b/src/Ubench.php index a83ada6..474561a 100644 --- a/src/Ubench.php +++ b/src/Ubench.php @@ -33,11 +33,12 @@ class Ubench /** * Sets start microtime * - * @return void + * @return $this */ public function start() { $this->start_time = microtime(true); + return $this; } /** @@ -185,11 +186,17 @@ public static function readableElapsedTime($microtime, $format = null, $round = return sprintf($format, $time, $unit); } + /** + * @return bool + */ public function hasEnded() { return isset($this->end_time); } + /** + * @return bool + */ public function hasStarted() { return isset($this->start_time);