8000 [#3539] A backport of a sentence - the parts that apply to 2.3 · symfony/symfony-docs@3006120 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3006120

Browse files
committed
[#3539] A backport of a sentence - the parts that apply to 2.3
1 parent 5a3ba1b commit 3006120

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/stopwatch.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ microtime by yourself. Instead, use the simple
3535
// ... some code goes here
36< 7A61 /td>36
$event = $stopwatch->stop('eventName');
3737

38+
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved
39+
from the :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
40+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop` and
41+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` methods.
42+
3843
You can also provide a category name to an event::
3944

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

0 commit comments

Comments
 (0)
0