Class AKCoreTimer

Description

Timer class

Located in /administrator/components/com_joomlaupdate/restore.php (line 3477)

AKAbstractObject
   |
   --AKCoreTimer
Variable Summary
Method Summary
AECoreTimer __construct ()
float getRunningTime ()
float getTimeLeft ()
void microtime_float ()
void resetTime ()
void __wakeup ()
Variables
int $max_exec_time = null (line 3480)
  • var: Maximum execution time allowance per step
  • access: private
int $start_time = null (line 3483)
  • var: Timestamp of execution start
  • access: private

Inherited Variables

Inherited from AKAbstractObject

AKAbstractObject::$_errors
AKAbstractObject::$_errors_queue_size
AKAbstractObject::$_warnings
AKAbstractObject::$_warnings_queue_size
Methods
Constructor __construct (line 3489)

Public constructor, creates the timer object and calculates the execution time limits

  • access: public
AECoreTimer __construct ()

Redefinition of:
AKAbstractObject::__construct()
Public constructor, makes sure we are instanciated only by the factory class
enforce_min_exec_time (line 3574)

Enforce the minimum execution time

  • access: public
void enforce_min_exec_time ()
getRunningTime (line 3557)

Gets the time elapsed since object creation/unserialization, effectively how

long Akeeba Engine has been processing data

  • access: public
float getRunningTime ()
getTimeLeft (line 3547)

Gets the number of seconds left, before we hit the "must break" threshold

  • access: public
float getTimeLeft ()
microtime_float (line 3565)

Returns the current timestampt in decimal seconds

  • access: private
void microtime_float ()
resetTime (line 3637)

Reset the timer. It should only be used in CLI mode!

  • access: public
void resetTime ()
__wakeup (line 3537)

Wake-up function to reset internal timer when we get unserialized

  • access: public
void __wakeup ()

Inherited Methods

Inherited From AKAbstractObject

AKAbstractObject::__construct()
AKAbstractObject::getError()
AKAbstractObject::getErrors()
AKAbstractObject::getItemFromArray()
AKAbstractObject::getWarning()
AKAbstractObject::getWarnings()
AKAbstractObject::propagateFromObject()
AKAbstractObject::propagateToObject()
AKAbstractObject::resetErrors()
AKAbstractObject::resetWarnings()
AKAbstractObject::setError()
AKAbstractObject::setErrorsQueueSize()
AKAbstractObject::setWarning()
AKAbstractObject::setWarningsQueueSize()

Documentation generated on Mon, 25 Jun 2012 13:59:13 -0500 by phpDocumentor 1.4.4