TimingsRecord
Represents a record collected by a timings handler. This record will live until the end of the current timings session, even if its handler goes out of scope. This ensures that timings collected by destroyed timers are still shown in the final report.
Methods
__construct()
php
public function __construct(\pocketmine\timings\TimingsHandler $handler, ?\pocketmine\timings\TimingsRecord $parentRecord)getAll()
php
public static function getAll() : arraygetCount()
php
public function getCount() : intgetCurCount()
php
public function getCurCount() : intgetCurTickTotal()
php
public function getCurTickTotal() : floatgetCurrentRecord()
php
public static function getCurrentRecord() : ?selfgetGroup()
php
public function getGroup() : stringgetId()
php
public function getId() : intgetName()
php
public function getName() : stringgetParentId()
php
public function getParentId() : ?intgetPeakTime()
php
public function getPeakTime() : intgetStart()
php
public function getStart() : floatgetTicksActive()
php
public function getTicksActive() : intgetTimerId()
php
public function getTimerId() : intgetTotalTime()
php
public function getTotalTime() : floatgetViolations()
php
public function getViolations() : intstartTiming()
php
public function startTiming(int $now) : voidstopTiming()
php
public function stopTiming(int $now) : voidtick()
php
public static function tick(bool $measure = true) : void