Skip to content

TimingsRecord ​

final class · pocketmine\timings\TimingsRecord · source

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() : array

getCount() ​

php
public function getCount() : int

getCurCount() ​

php
public function getCurCount() : int

getCurTickTotal() ​

php
public function getCurTickTotal() : float

getCurrentRecord() ​

php
public static function getCurrentRecord() : ?self

getGroup() ​

php
public function getGroup() : string

getId() ​

php
public function getId() : int

getName() ​

php
public function getName() : string

getParentId() ​

php
public function getParentId() : ?int

getPeakTime() ​

php
public function getPeakTime() : int

getStart() ​

php
public function getStart() : float

getTicksActive() ​

php
public function getTicksActive() : int

getTimerId() ​

php
public function getTimerId() : int

getTotalTime() ​

php
public function getTotalTime() : float

getViolations() ​

php
public function getViolations() : int

startTiming() ​

php
public function startTiming(int $now) : void

stopTiming() ​

php
public function stopTiming(int $now) : void

tick() ​

php
public static function tick(bool $measure = true) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.