Skip to content

Commit

Permalink
[Stopwatch] Add getLastPeriod method to StopwatchEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault committed May 22, 2024
1 parent d4f51e6 commit 6331dc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,13 @@ method does, which stops an event and then restarts it immediately::
// Lap information is stored as "periods" within the event:
// $event->getPeriods();

// Gets the last event period:
// $event->getLastPeriod();

.. versionadded:: 7.2

The ``getLastPeriod`` method was introduced in Symfony 7.2.

Profiling Sections
..................

Expand Down

0 comments on commit 6331dc5

Please sign in to comment.