wpseek.com
WordPress开发者和主题制作者的搜索引擎



timer_float › WordPress Function

Since5.8.0
已弃用n/a
timer_float ( 没有参数 )
返回:
  • (float) Seconds since the PHP script started.
定义在:
文档:

Gets 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'];
}