wpseek.com
A WordPress-centric search engine for devs and theme authors



timer_float › WordPress Function

Since5.8.0
Deprecatedn/a
timer_float ( No parameters )
Returns:
  • (float) Seconds since the PHP script started.
Defined at:
Codex:

Gets the time elapsed so far during this PHP script.

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.


Source

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