Skip to content

Commit

Permalink
[#3539] A backport of a sentence - the parts that apply to 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Mar 26, 2014
1 parent 5a3ba1b commit 3006120
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/stopwatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ 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 the :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop` and
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` methods.

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

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

0 comments on commit 3006120

Please sign in to comment.