timer_float

函式
timer_float ( No parameters )
返回值
  • (float) Seconds since the PHP script started.
定義位置
相關方法
timer_stoptimer_startsize_formatwp_ajax_time_formatiframe_footer
引入
5.8.0
棄用
-

timer_float: 這個函式返回從使用timer_start函式啟動計時器以來所經過的時間(秒)。

在這個PHP指令碼中,獲得迄今為止所經過的時間。

使用 PHP 5.4.0 中出現的 REQUEST_TIME_FLOAT。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function timer_float() {
return microtime( true ) - $_SERVER['REQUEST_TIME_FLOAT'];
}
function timer_float() { return microtime( true ) - $_SERVER['REQUEST_TIME_FLOAT']; }
function timer_float() {
	return microtime( true ) - $_SERVER['REQUEST_TIME_FLOAT'];
}

常見問題

FAQs
檢視更多 >