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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy