From 3006120b28a70074a16586292213658a68249495 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 25 Mar 2014 22:38:20 -0400 Subject: [PATCH] [#3539] A backport of a sentence - the parts that apply to 2.3 --- components/stopwatch.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/stopwatch.rst b/components/stopwatch.rst index a839b432ddf..d7efdd62d07 100644 --- a/components/stopwatch.rst +++ b/components/stopwatch.rst @@ -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');