return 0;
} /**
* Gets the relative time of the end of the last period in milliseconds.
*/
public function getEndTime(): int|float
{ $count = \
count($this->periods
);
return $count ?
$this->periods
[$count - 1
]->
getEndTime() : 0;
} /**
* Gets the duration of the events in milliseconds (including all periods).
*/
public function getDuration(): int|float
{ $periods =
$this->periods;
$left = \
count($this->started
);
for ($i =
$left - 1;
$i >= 0; --
$i) {