We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a30929 commit 9c8834aCopy full SHA for 9c8834a
2 files changed
src/Clock.php
@@ -11,4 +11,6 @@ interface Clock extends ClockInterface
11
public function asUTC(): UTCClock;
12
13
public function asMicrotime(): MicrotimeClock;
14
+
15
+ public function stopWatch(): StopWatch;
16
}
src/Clock/AbstractClock.php
@@ -6,6 +6,7 @@
6
7
use Recruiter\Clock;
8
use Recruiter\MicrotimeClock;
9
+use Recruiter\StopWatch;
10
use Recruiter\UTCClock;
abstract class AbstractClock implements Clock
@@ -19,4 +20,9 @@ public function asMicrotime(): MicrotimeClock
19
20
{
21
return new PsrMicrotimeClock($this);
22
23
24
+ public function stopWatch(): StopWatch
25
+ {
26
+ return new StopWatch\ClockStopWatch($this);
27
+ }
28
0 commit comments