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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe AKCoreTimer
+ Graphe d'héritage de AKCoreTimer:

Fonctions membres publiques

 __construct ()
 
 __wakeup ()
 
 getTimeLeft ()
 
 getRunningTime ()
 
 enforce_min_exec_time ()
 
 resetTime ()
 
 setMaxExecTime ($max_exec_time)
 
- Fonctions membres publiques hérités de AKAbstractObject
 getError ($i=null)
 
 getErrors ()
 
 resetErrors ()
 
 getWarning ($i=null)
 
 getWarnings ()
 
 resetWarnings ()
 
 propagateToObject (&$object)
 
 propagateFromObject (&$object)
 
 setError ($error)
 
 setWarning ($warning)
 

Fonctions membres privées

 microtime_float ()
 

Attributs privés

 $max_exec_time = null
 
 $start_time = null
 

Membres hérités additionnels

- Fonctions membres protégées hérités de AKAbstractObject
 setErrorsQueueSize ($newSize=0)
 
 setWarningsQueueSize ($newSize=0)
 
- Attributs protégés hérités de AKAbstractObject
 $_errors_queue_size = 0
 
 $_warnings_queue_size = 0
 

Description détaillée

Timer class

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

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

Références AKFactory\get(), et microtime_float().

Documentation des fonctions membres

◆ __wakeup()

__wakeup ( )

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

Références microtime_float().

◆ enforce_min_exec_time()

enforce_min_exec_time ( )

Enforce the minimum execution time

Références elseif, AKFactory\get(), et getRunningTime().

◆ getRunningTime()

getRunningTime ( )

Gets the time elapsed since object creation/unserialization, effectively how long Akeeba Engine has been processing data

Renvoie
float

Références $start_time, et microtime_float().

Référencé par enforce_min_exec_time(), et getTimeLeft().

◆ getTimeLeft()

getTimeLeft ( )

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

Renvoie
float

Références getRunningTime().

◆ microtime_float()

microtime_float ( )
private

Returns the current timestampt in decimal seconds

Référencé par __construct(), __wakeup(), getRunningTime(), et resetTime().

◆ resetTime()

resetTime ( )

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

Références microtime_float().

◆ setMaxExecTime()

setMaxExecTime (   $max_exec_time)
Paramètres
int$max_exec_time

Références $max_exec_time.

Documentation des champs

◆ $max_exec_time

$max_exec_time = null
private

Référencé par setMaxExecTime().

◆ $start_time

$start_time = null
private

Référencé par getRunningTime().


La documentation de cette classe a été générée à partir du fichier suivant :