Skip to content

Commit 2ca9bd5

Browse files
committed
Describe retrieval of StopwatchEvent
1 parent bdc6c3f commit 2ca9bd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/stopwatch.rst

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ microtime by yourself. Instead, use the simple
3131
// ... some code goes here
3232
$event = $stopwatch->stop('eventName');
3333

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+
3436
You can also provide a category name to an event::
3537

3638
$stopwatch->start('eventName', 'categoryName');

0 commit comments

Comments
 (0)