Manual:$wgRequestTime/es
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.32.0</tvar>.</translate> |
<translate> [[<tvar|1>Special:MyLanguage/Manual:Global object variables</>|Global object]]:</translate> $wgRequestTime/es | |
---|---|
timer, initialized in WebStart.php and Maintenance.php | |
<translate> Deprecated in:</translate> | 1.25.0 |
<translate> Removed in:</translate> | 1.32.0 |
<translate> Class:</translate> | <translate> Unspecified</translate> |
<translate> Located in:</translate> | <translate> Unspecified</translate> |
Resumen
$wgRequestTime
is a global microtime float that is initialized early in the engine that a lot of other times are computed relative to for logging, profiling, and debugging.
Ejemplos
A snippet from Debug.php:
global $wgRequestTime;
return array(
'time' => microtime( true ) - $wgRequestTime,
);