Skip to content

Commit 4b21133

Browse files
committed
[Stopwatch] Document the reset method
1 parent 53c1e20 commit 4b21133

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)