public function start(string
$name, string
$category = null
): StopwatchEvent
{ return end($this->activeSections
)->
startEvent($name,
$category);
} /**
* Checks if the event was started.
*/
public function isStarted(string
$name): bool
{ return end($this->activeSections
)->
isEventStarted($name);
} /**
* Stops an event.
*/
public function stop(string
$name): StopwatchEvent
{ return end($this->activeSections
)->
stopEvent($name);
} /**
* Stops then restarts an event.
*/