PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
Loading...
Searching...
No Matches
pocketmine\timings\TimingsHandler Class Reference
+ Collaboration diagram for pocketmine\timings\TimingsHandler:

Public Member Functions

 __construct (private string $name, private ?TimingsHandler $parent=null, private string $group=Timings::GROUP_MINECRAFT)
 
 getGroup ()
 
 getName ()
 
 reset ()
 
 startTiming ()
 
 stopTiming ()
 
 time (\Closure $closure)
 

Static Public Member Functions

static getStartTime ()
 
static isEnabled ()
 
static printTimings ()
 
static reload ()
 
static setEnabled (bool $enable=true)
 
static tick (bool $measure=true)
 

Detailed Description

Definition at line 32 of file TimingsHandler.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\timings\TimingsHandler::__construct ( private string $name,
private ?TimingsHandler $parent = null,
private string $group = Timings::GROUP_MINECRAFT )

Definition at line 120 of file TimingsHandler.php.

Member Function Documentation

◆ getGroup()

pocketmine\timings\TimingsHandler::getGroup ( )

Definition at line 128 of file TimingsHandler.php.

◆ getName()

pocketmine\timings\TimingsHandler::getName ( )

Definition at line 126 of file TimingsHandler.php.

◆ getStartTime()

static pocketmine\timings\TimingsHandler::getStartTime ( )
static

Definition at line 94 of file TimingsHandler.php.

◆ isEnabled()

static pocketmine\timings\TimingsHandler::isEnabled ( )
static

Definition at line 85 of file TimingsHandler.php.

◆ printTimings()

static pocketmine\timings\TimingsHandler::printTimings ( )
static
Returns
string[]

Definition at line 39 of file TimingsHandler.php.

◆ reload()

static pocketmine\timings\TimingsHandler::reload ( )
static

Definition at line 98 of file TimingsHandler.php.

◆ reset()

pocketmine\timings\TimingsHandler::reset ( )

Definition at line 207 of file TimingsHandler.php.

◆ setEnabled()

static pocketmine\timings\TimingsHandler::setEnabled ( bool $enable = true)
static

Definition at line 89 of file TimingsHandler.php.

◆ startTiming()

pocketmine\timings\TimingsHandler::startTiming ( )

Definition at line 130 of file TimingsHandler.php.

◆ stopTiming()

pocketmine\timings\TimingsHandler::stopTiming ( )

Definition at line 159 of file TimingsHandler.php.

◆ tick()

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

Definition at line 105 of file TimingsHandler.php.

◆ time()

pocketmine\timings\TimingsHandler::time ( \Closure $closure)
Returns
mixed the result of the given closure

@phpstan-template TClosureReturn @phpstan-param \Closure() : TClosureReturn $closure @phpstan-return TClosureReturn

Definition at line 195 of file TimingsHandler.php.


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