timer_float()

Get the time elapsed so far during this PHP script.


Description Description

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.


Top ↑

Return Return

(float) Seconds since the PHP script started.


Top ↑

Source Source

File: wp-includes/load.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.