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 FOFUtilsTimer

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
 

Description détaillée

An execution timer monitor class

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $max_exec_time = 5.0,
  $runtime_bias = 75.0 
)

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

Paramètres
float$max_exec_timeMaximum execution time allowance
float$runtime_biasExecution time bias (expressed as % of $max_exec_time)

Documentation des fonctions membres

◆ __wakeup()

__wakeup ( )

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

◆ getRunningTime()

getRunningTime ( )

Gets the time elapsed since object creation/unserialization, effectively how long we are running

Renvoie
float

◆ getTimeLeft()

getTimeLeft ( )

Gets the number of seconds left, before we hit the "must break" threshold. Negative values mean that we have already crossed that threshold.

Renvoie
float

◆ microtime_float()

microtime_float ( )
private

Returns the current timestamp in decimal seconds

Renvoie
float

◆ resetTime()

resetTime ( )

Reset the timer

Documentation des champs

◆ $max_exec_time

$max_exec_time = null
private

◆ $start_time

$start_time = null
private

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