Skip to content

Commit 1846701

Browse files
authored
Merge pull request #6 from antoniogarcia78/master
Change end() method to fluent method
2 parents 255dd8d + 023c7b3 commit 1846701

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ubench.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function start()
4343
/**
4444
* Sets end microtime
4545
*
46-
* @return void
46+
* @return $this
4747
* @throws Exception
4848
*/
4949
public function end()
@@ -55,6 +55,7 @@ public function end()
5555

5656
$this->end_time = microtime(true);
5757
$this->memory_usage = memory_get_usage(true);
58+
return $this;
5859
}
5960

6061
/**

0 commit comments

Comments
 (0)