Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($max_exec_time=5.0, $runtime_bias=75.0) | |
__wakeup () | |
getTimeLeft () | |
getRunningTime () | |
resetTime () | |
Fonctions membres privées | |
microtime_float () | |
Attributs privés | |
$max_exec_time = null | |
$start_time = null | |
An execution timer monitor class
__construct | ( | $max_exec_time = 5.0 , |
|
$runtime_bias = 75.0 |
|||
) |
Public constructor, creates the timer object and calculates the execution time limits.
float | $max_exec_time | Maximum execution time allowance |
float | $runtime_bias | Execution time bias (expressed as % of $max_exec_time) |
__wakeup | ( | ) |
Wake-up function to reset internal timer when we get unserialized
getRunningTime | ( | ) |
Gets the time elapsed since object creation/unserialization, effectively how long we are running
getTimeLeft | ( | ) |
Gets the number of seconds left, before we hit the "must break" threshold. Negative values mean that we have already crossed that threshold.
|
private |
Returns the current timestamp in decimal seconds
resetTime | ( | ) |
Reset the timer
|
private |
|
private |