Permalink
Browse files

minor #3720 [#3539] A backport of a sentence - the parts that apply t…

…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 9f26da860a642b228d8a9fa56ab3e93acf33339a
Showing with 5 additions and 0 deletions.
  1. +5 −0 components/stopwatch.rst
View
@@ -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');

0 comments on commit 9f26da8

Please sign in to comment.