PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\timings\TimingsRecord Class Reference
+ Collaboration diagram for pocketmine\timings\TimingsRecord:

Public Member Functions

 __construct (private TimingsHandler $handler, private ?TimingsRecord $parentRecord)
 
 getCount ()
 
 getCurCount ()
 
 getCurTickTotal ()
 
 getGroup ()
 
 getId ()
 
 getName ()
 
 getParentId ()
 
 getPeakTime ()
 
 getStart ()
 
 getTicksActive ()
 
 getTimerId ()
 
 getTotalTime ()
 
 getViolations ()
 
 startTiming (int $now)
 
 stopTiming (int $now)
 

Static Public Member Functions

static getAll ()
 
static getCurrentRecord ()
 
static reset ()
 
static tick (bool $measure=true)
 

Detailed Description

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.

Definition at line 36 of file TimingsRecord.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\timings\TimingsRecord::__construct ( private TimingsHandler $handler,
private ?TimingsRecord $parentRecord )

Definition at line 94 of file TimingsRecord.php.

Member Function Documentation

◆ getAll()

static pocketmine\timings\TimingsRecord::getAll ( )
static
Returns
self[] @phpstan-return array<int, self>

Definition at line 60 of file TimingsRecord.php.

◆ getCount()

pocketmine\timings\TimingsRecord::getCount ( )

Definition at line 112 of file TimingsRecord.php.

◆ getCurCount()

pocketmine\timings\TimingsRecord::getCurCount ( )

Definition at line 114 of file TimingsRecord.php.

◆ getCurrentRecord()

static pocketmine\timings\TimingsRecord::getCurrentRecord ( )
static

Definition at line 157 of file TimingsRecord.php.

◆ getCurTickTotal()

pocketmine\timings\TimingsRecord::getCurTickTotal ( )

Definition at line 120 of file TimingsRecord.php.

◆ getGroup()

pocketmine\timings\TimingsRecord::getGroup ( )

Definition at line 110 of file TimingsRecord.php.

◆ getId()

pocketmine\timings\TimingsRecord::getId ( )

Definition at line 102 of file TimingsRecord.php.

◆ getName()

pocketmine\timings\TimingsRecord::getName ( )

Definition at line 108 of file TimingsRecord.php.

◆ getParentId()

pocketmine\timings\TimingsRecord::getParentId ( )

Definition at line 104 of file TimingsRecord.php.

◆ getPeakTime()

pocketmine\timings\TimingsRecord::getPeakTime ( )

Definition at line 126 of file TimingsRecord.php.

◆ getStart()

pocketmine\timings\TimingsRecord::getStart ( )

Definition at line 116 of file TimingsRecord.php.

◆ getTicksActive()

pocketmine\timings\TimingsRecord::getTicksActive ( )

Definition at line 124 of file TimingsRecord.php.

◆ getTimerId()

pocketmine\timings\TimingsRecord::getTimerId ( )

Definition at line 106 of file TimingsRecord.php.

◆ getTotalTime()

pocketmine\timings\TimingsRecord::getTotalTime ( )

Definition at line 118 of file TimingsRecord.php.

◆ getViolations()

pocketmine\timings\TimingsRecord::getViolations ( )

Definition at line 122 of file TimingsRecord.php.

◆ reset()

static pocketmine\timings\TimingsRecord::reset ( )
static

Definition at line 48 of file TimingsRecord.php.

◆ startTiming()

pocketmine\timings\TimingsRecord::startTiming ( int $now)

Definition at line 128 of file TimingsRecord.php.

◆ stopTiming()

pocketmine\timings\TimingsRecord::stopTiming ( int $now)

Definition at line 133 of file TimingsRecord.php.

◆ tick()

static pocketmine\timings\TimingsRecord::tick ( bool $measure = true)
static

Definition at line 62 of file TimingsRecord.php.


The documentation for this class was generated from the following file: