ts3phpframework
Loading...
Searching...
No Matches
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler Class Reference

Helper class for profiler handling. More...

Static Public Member Functions

static init (string $name="default")
static start (string $name="default")
static stop (string $name="default")
static get (string $name="default")

Static Protected Attributes

static array $timers = []

Detailed Description

Helper class for profiler handling.

Definition at line 13 of file Profiler.php.

Member Function Documentation

◆ get()

PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler::get ( string $name = "default")
static

Returns a timer.

Parameters
string$name
Returns
Timer

Definition at line 69 of file Profiler.php.

◆ init()

PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler::init ( string $name = "default")
static

Inits a timer.

Parameters
string$name
Returns
void

Definition at line 28 of file Profiler.php.

◆ start()

PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler::start ( string $name = "default")
static

Starts a timer.

Parameters
string$name
Returns
void

Definition at line 39 of file Profiler.php.

◆ stop()

PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler::stop ( string $name = "default")
static

Stops a timer.

Parameters
string$name
Returns
void

Definition at line 54 of file Profiler.php.

Member Data Documentation

◆ $timers

array PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler::$timers = []
staticprotected

Definition at line 20 of file Profiler.php.


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