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: src/TimeTracker.php
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -267,6 +267,57 @@ public function getActiveTimers(): array
267
267
return$activeTimers;
268
268
}
269
269
270
+
/**
271
+
* @codeCoverageIgnore
272
+
*
273
+
* Executes a callback while tracking its execution time.
274
+
*
275
+
* @deprecated Use `watch` instead
276
+
*
277
+
* @param callable $callback The callback function to execute.
278
+
* @param array $params Parameters to pass to the callback.
279
+
* @param string $unit The unit for measuring execution time.
280
+
* @return array{result: Result, time: float|int, unit: string, output: mixed} An array containing Result, the execution time, unit, and callback result.
0 commit comments