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