![]() |
TeamSpeak 3 PHP Framework
1.1.16
Copyright © Planet TeamSpeak. All rights reserved.
|
Helper class providing profiler timers. More...
Public Member Functions | |
__construct ($name) | |
The TeamSpeak3_Helper_Profiler_Timer constructor. | |
start () | |
Starts the timer. | |
stop () | |
Stops the timer. | |
getRuntime () | |
Return the timer runtime. | |
getMemUsage ($realmem=FALSE) | |
Returns the amount of memory allocated to PHP in bytes. | |
isRunning () | |
Returns TRUE if the timer is running. | |
Protected Attributes | |
$running = FALSE | |
$started = 0 | |
$name = null | |
$data = array() | |
TeamSpeak3_Helper_Profiler_Timer::__construct | ( | $name | ) |
The TeamSpeak3_Helper_Profiler_Timer constructor.
string | $name |
Definition at line 68 of file Timer.php.
References start().
TeamSpeak3_Helper_Profiler_Timer::start | ( | ) |
Starts the timer.
Definition at line 84 of file Timer.php.
References isRunning().
Referenced by __construct(), getMemUsage(), and getRuntime().
TeamSpeak3_Helper_Profiler_Timer::stop | ( | ) |
Stops the timer.
Definition at line 100 of file Timer.php.
References isRunning().
Referenced by getMemUsage(), and getRuntime().
TeamSpeak3_Helper_Profiler_Timer::getRuntime | ( | ) |
TeamSpeak3_Helper_Profiler_Timer::getMemUsage | ( | $realmem = FALSE | ) |
Returns the amount of memory allocated to PHP in bytes.
boolean | $realmem |
Definition at line 134 of file Timer.php.
References isRunning(), start(), and stop().
TeamSpeak3_Helper_Profiler_Timer::isRunning | ( | ) |
Returns TRUE if the timer is running.
Definition at line 150 of file Timer.php.
Referenced by getMemUsage(), getRuntime(), start(), and stop().