Open main menu

Manual:$wgRequestTime

This page is a translated version of the page Manual:$wgRequestTime and the translation is 43% complete.
Other languages:
English • ‎español • ‎polski • ‎português do Brasil • ‎中文 • ‎日本語

Resumen

  Advertencia: 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,
);