Basic usage
HRTime\PerformanceCounter::getElapsedTicks
HRTime
PHP Manual
The HRTime\PerformanceCounter class
(PECL hrtime >= 0.4.3)
简介
类摘要
HRTime\PerformanceCounter
{
/* 方法 */
public
int
getElapsedTicks
(
void
)
public
int
getFrequency
(
void
)
public
int
getLastElapsedTicks
(
void
)
public
bool
isRunning
(
void
)
public
void
start
(
void
)
public
void
stop
(
void
)
}
Table of Contents
HRTime\PerformanceCounter::getElapsedTicks
— Get elapsed ticks for all intervals.
HRTime\PerformanceCounter::getFrequency
— Timer frequency in ticks per second
HRTime\PerformanceCounter::getLastElapsedTicks
— Get elapsed ticks for the last interval.
HRTime\PerformanceCounter::isRunning
— Whether the measurement is running.
HRTime\PerformanceCounter::start
— Start time measurement
HRTime\PerformanceCounter::stop
— Stop time measurement
Basic usage
HRTime\PerformanceCounter::getElapsedTicks
HRTime
PHP Manual