public function reset(): void
{ $this->data =
['events' =>
[], 'stopwatch_installed' => false, 'start_time' => 0
];
$this->stopwatch?->
reset();
} public function lateCollect(): void
{ if (null !==
$this->stopwatch &&
isset($this->data
['token'
])) { $this->
setEvents($this->stopwatch->
getSectionEvents($this->data
['token'
]));
} unset($this->data
['token'
]);
} /**
* @param StopwatchEvent[] $events The request events
*/
public function setEvents(array
$events): void
{ foreach ($events as $event) { $event->
ensureStopped();
}