Skip to content

Commit

Permalink
Add reason for getEvent()
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenvdv committed Mar 25, 2014
1 parent ac484f4 commit 295f109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/stopwatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieve
: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` methods.
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` methods.
The latter should be used when you need to retrieve the duration of an event while it is still running.

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

Expand Down

0 comments on commit 295f109

Please sign in to comment.