timePoint = $timePoint; $this->duration = $duration; $this->name = $name; $this->comment = $comment; } public function getTimePointTicks(): int|float { return $this->timePoint; } public function getDurationTicks(): int|float { return $this->duration; } public function getDurationTime(): float { return $this->duration / PerformanceCounter::getFrequency(); } public function getName(): string { return $this->name; } public function hasComment(): bool { return $this->comment !== ''; } public function getComment(): string { return $this->comment; } }