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: components/stopwatch.rst
+2
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ microtime by yourself. Instead, use the simple
31
31
// ... some code goes here
32
32
$event = $stopwatch->stop('eventName');
33
33
34
+
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and :method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent`
35
+
34
36
You can also provide a category name to an event::
0 commit comments