Skip to content

Commit

Permalink
feature #19913 [Stopwatch] Add getLastPeriodà method to StopwatchEv…
Browse files Browse the repository at this point in the history
…ent` (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
  • Loading branch information
OskarStark committed May 23, 2024
2 parents 84c3c45 + 6331dc5 commit 301b1b3
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 301b1b3

Please sign in to comment.