Skip to content

Commit 295f109

Browse files
committed
Add reason for getEvent()
1 parent ac484f4 commit 295f109

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/stopwatch.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieve
3838
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
3939
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`,
4040
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and
41-
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` methods.
41+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` methods.
42+
The latter should be used when you need to retrieve the duration of an event while it is still running.
4243

4344
You can also provide a category name to an event::
4445

0 commit comments

Comments
 (0)