timer_float

函数


timer_float ( No parameters )
返回值
  • (float) Seconds since the PHP script started.
定义位置
  • wp-includes/load.php
    , line 345
引入
5.8.0
弃用

Get the time elapsed so far during this PHP script.

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.

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