Skip to content

Commit 301b1b3

Browse files
committed
feature #19913 [Stopwatch] Add getLastPeriodà method to StopwatchEvent` (alamirault)
This PR was merged into the 7.2 branch. Discussion ---------- [Stopwatch] Add `getLastPeriodà method to `StopwatchEvent` Fix #19906 Commits ------- 6331dc5 [Stopwatch] Add getLastPeriod method to StopwatchEvent
2 parents 84c3c45 + 6331dc5 commit 301b1b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

performance.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ method does, which stops an event and then restarts it immediately::
362362
// Lap information is stored as "periods" within the event:
363363
// $event->getPeriods();
364364

365+
// Gets the last event period:
366+
// $event->getLastPeriod();
367+
368+
.. versionadded:: 7.2
369+
370+
The ``getLastPeriod`` method was introduced in Symfony 7.2.
371+
365372
Profiling Sections
366373
..................
367374

0 commit comments

Comments
 (0)