timer_float()WP 5.8.0

Get the time elapsed so far during this PHP script.

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.

No Hooks.

Return

float. Seconds since the PHP script started.

Usage

timer_float();

Changelog

Since 5.8.0 Introduced.

Code of timer_float() WP 6.0

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