Skip to content

Commit 10923ef

Browse files
committed
feature #8082 [Stopwatch] Document the reset method (jmgq)
This PR was merged into the master branch. Discussion ---------- [Stopwatch] Document the reset method Documentation for the new `Stopwatch::reset` method described in symfony/symfony#23284. Commits ------- 4b21133 [Stopwatch] Document the reset method
2 parents 22cb2be + 4b21133 commit 10923ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/stopwatch.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ from the :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
4141
The latter should be used when you need to retrieve the duration of an event
4242
while it is still running.
4343

44+
The stopwatch can be reset to its original state at any given time with the
45+
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::reset` method, which deletes
46+
all the data measured so far.
47+
4448
You can also provide a category name to an event::
4549

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

0 commit comments

Comments
 (0)
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