Skip to content

Commit

Permalink
Made suggested tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenvdv committed Mar 25, 2014
1 parent 2ca9bd5 commit ac484f4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/stopwatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ microtime by yourself. Instead, use the simple
// ... some code goes here
$event = $stopwatch->stop('eventName');

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`
.. versionadded:: 2.5
The ``getEvent()`` method was introduced

The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from the
: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.

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

Expand Down

0 comments on commit ac484f4

Please sign in to comment.