? 其他
簡(jiǎn)介 ?
Bejson.com
PHP Manual
日期與時(shí)間相關(guān)擴(kuò)展
High resolution timing
High resolution timing
簡(jiǎn)介
安裝/配置
安裝
范例
Basic usage
HRTime\PerformanceCounter
— The HRTime\PerformanceCounter class
HRTime\PerformanceCounter::getFrequency
— Timer frequency in ticks per second
HRTime\PerformanceCounter::getTicks
— Current ticks from the system
HRTime\PerformanceCounter::getTicksSince
— Ticks elapsed since the given value
HRTime\StopWatch
— The HRTime\StopWatch class
HRTime\StopWatch::getElapsedTicks
— Get elapsed ticks for all intervals
HRTime\StopWatch::getElapsedTime
— Get elapsed time for all intervals
HRTime\StopWatch::getLastElapsedTicks
— Get elapsed ticks for the last interval
HRTime\StopWatch::getLastElapsedTime
— Get elapsed time for the last interval
HRTime\StopWatch::isRunning
— 確認(rèn)測(cè)量是否在運(yùn)行
HRTime\StopWatch::start
— Start time measurement
HRTime\StopWatch::stop
— Stop time measurement
HRTime\Unit
— The HRTime\Unit class