Manual:$wgRequestTime

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

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.

Examples

A snippet from Debug.php:

global $wgRequestTime;
return array(
    'time' => microtime( true ) - $wgRequestTime,
);