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');