Skip to content

Commit

Permalink
minor #3720 [#3539] A backport of a sentence - the parts that apply t…
Browse files Browse the repository at this point in the history
…o 2.3 (weaverryan)

This PR was merged into the 2.3 branch.

Discussion
----------

[#3539] A backport of a sentence - the parts that apply to 2.3

Hi guys!

| Q | A |
|----------------|------|
| Doc fix | no |
| New docs | no |
| Applies to | 2.3 |
| Fixed tickets | #3539 |

This backports the 2.3 parts of a paragraph that was added to 2.5 (master). I like to keep the branches different in *only* different features, so it's easy going into the future to merge things.

Thanks!

Commits
-------

3006120 [#3539] A backport of a sentence - the parts that apply to 2.3
  • Loading branch information
weaverryan committed Mar 27, 2014
2 parents 3b640aa + 3006120 commit 9f26da8
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 9f26da8

Please sign in to comment.