You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Once you start the time with a given key, you can use the same key to refer to t
41
41
You can of course use PHP magic constants to make things easier:
42
42
43
43
Timer::start(__FUNCTION__);
44
-
Attempting to start the timer with a non-scalar key will throw an`\InvalidArgumentException` exception.
44
+
Attempting to start the timer with a non-scalar key will throw a`\TypeError` exception.
45
45
46
46
####Read timer
47
47
After starting the timer, you can read the elapsed time at any time. Reading the time will not stop the timer. You can read the timer, do some expensive calculations, and read again to get the cumulative time.
0 commit comments