Class FOFUtilsTimer
An execution timer monitor class
Package: FrameworkOnFramework\utils
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/timer/timer.php
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/timer/timer.php
Methods summary
public
|
#
__construct( float $max_exec_time = 5.0, float $runtime_bias = 75.0 )
Public constructor, creates the timer object and calculates the execution time limits. |
public
|
|
public
float
|
#
getTimeLeft( )
Gets the number of seconds left, before we hit the "must break" threshold. Negative values mean that we have already crossed that threshold. |
public
float
|
#
getRunningTime( )
Gets the time elapsed since object creation/unserialization, effectively how long we are running |
public
|