timer_float

The timeline below displays how wordpress function timer_float has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Gets the time elapsed so far during this PHP script.
 *
 * Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.
 *
 * @since 5.8.0
 *
 * @return float Seconds since the PHP script started.
 */
function timer_float()
{
    return microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
}

WordPress Version: 5.8

/**
 * Get the time elapsed so far during this PHP script.
 *
 * Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.
 *
 * @since 5.8.0
 *
 * @return float Seconds since the PHP script started.
 */
function timer_float()
{
    return microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
}