Метод | Описание | |
---|---|---|
__construct ( integer $max_exec_time = 5, integer $runtime_bias = 75 ) : |
Public constructor, creates the timer object and calculates the execution time limits. | |
__wakeup ( ) : void | Wake-up function to reset internal timer when we get unserialized | |
getRunningTime ( ) : float | Gets the time elapsed since object creation/unserialization, effectively how long this step is running | |
getTimeLeft ( ) : float | Gets the number of seconds left, before we hit the "must break" threshold | |
resetTime ( ) : void | Reset the timer |
public __construct ( integer $max_exec_time = 5, integer $runtime_bias = 75 ) : |
||
$max_exec_time | integer | Maximum execution time, in seconds |
$runtime_bias | integer | Runtime bias factor, as percent points of the max execution time |
Результат |
public getRunningTime ( ) : float | ||
Результат | float |
public getTimeLeft ( ) : float | ||
Результат | float |