timer_float() – Get the time elapsed so far during this PHP script.

You appear to be a bot. Output may be restricted

Description

Get the time elapsed so far during this PHP script.

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.

Usage

$float = timer_float();

Parameters

Returns

float Seconds since the PHP script started.

Source

File name: wordpress/wp-includes/load.php
Lines:

1 to 3 of 3
function timer_float() {
  return microtime( true ) - $_SERVER['REQUEST_TIME_FLOAT'];
}
 

 View on GitHub View on Trac