From 4b2113349c9f67e7569f684edcb6c991249684a6 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Sat, 24 Jun 2017 12:50:00 +0100 Subject: [PATCH] [Stopwatch] Document the reset method --- components/stopwatch.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/stopwatch.rst b/components/stopwatch.rst index d2791f5bbb5..3d1d02c68c9 100644 --- a/components/stopwatch.rst +++ b/components/stopwatch.rst @@ -41,6 +41,10 @@ from the :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`, The latter should be used when you need to retrieve the duration of an event while it is still running. +The stopwatch can be reset to its original state at any given time with the +:method:`Symfony\\Component\\Stopwatch\\Stopwatch::reset` method, which deletes +all the data measured so far. + You can also provide a category name to an event:: $stopwatch->start('eventName', 'categoryName'); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy