Microtime
基本解釋
- 微時(shí)牌鐘表潤(rùn)滑油
英漢例句
- The uniqid() function generates a unique ID based on the microtime (current time in microseconds).
函數(shù)的作用是:產(chǎn)生一個(gè)基于系統(tǒng)時(shí)間的獨(dú)立ID(當(dāng)前時(shí)間以微秒為單位)。 - Basically, constructing such a class depends on defining a couple of methods that behave as basic wrappers for the built-in PHP "microtime()" function.
不過(guò),如果你只是想要一個(gè)簡(jiǎn)單但有效的計(jì)時(shí)器類(lèi),并且不想寫(xiě)復(fù)雜的代碼,那么(例子中的)這個(gè)也許就可以滿足你的要求了。 - Microtime -- Return current Unix timestamp with microseconds
microtime--返回當(dāng)前UNIX時(shí)間戳和微秒數(shù) - phpecho ("Page Took :");$load = microtime();print (number_format($load,2));echo (" Sec To Load.");
提供了演示的下載,請(qǐng)自己去試試!四:頁(yè)面加載時(shí)間的代碼: