Manual:$wgRequestTime/es

From Linux Web Expert

Revision as of 04:40, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Resumen

File:OOjs UI icon notice-destructive.svg <translate> Warning:</translate> This is not an object variable, but is a global initialized by MediaWiki.

$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,
);