$events
$events : array<mixed,\app\framework\Component\Stopwatch\StopwatchEvent>
Stopwatch section.
$events : array<mixed,\app\framework\Component\Stopwatch\StopwatchEvent>
$children : array<mixed,\app\framework\Component\Stopwatch\Section>
startEvent(string $name, string $category) : \app\framework\Component\Stopwatch\StopwatchEvent
Starts an event.
string | $name | The event name |
string | $category | The event category |
The event
stopEvent(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Stops an event.
string | $name | The event name |
The event
lap(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Stops then restarts an event.
string | $name | The event name |
When the event has not been started
The event
getEvent(string $name) : \app\framework\Component\Stopwatch\StopwatchEvent
Returns a specific event by name.
string | $name | The event name |
The event
getEvents() : array<mixed,\app\framework\Component\Stopwatch\StopwatchEvent>
Returns the events from this section.
An array of StopwatchEvent instances