diff --git a/wp-includes/load.php b/wp-includes/load.php index be5a8fcda7..0ea926c9dd 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -333,6 +333,19 @@ function wp_is_maintenance_mode() { return true; } +/** + * 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']; +} + /** * Start the WordPress micro-timer. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 911e8d8dff..4ddd58ec76 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50785'; +$wp_version = '5.8-alpha-50786'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.