? HRTime\PerformanceCounter::getTicksSince
HRTime\StopWatch::getElapsedTicks ?
PHP8中文参考手册
HRTime
The HRTime\StopWatch class
The HRTime\StopWatch class
(PECL hrtime >= 0.4.3)
简介
类摘要
HRTime\StopWatch
extends
HRTime\PerformanceCounter
{
/* 方法 */
public
getElapsedTicks
( ) :
int
public
getElapsedTime
(
int
$unit
= ?
) :
float
public
getLastElapsedTicks
( ) :
int
public
getLastElapsedTime
(
int
$unit
= ?
) :
float
public
isRunning
( ) :
bool
public
start
( ) :
void
public
stop
( ) :
void
/* 继承的方法 */
public
static
HRTime\PerformanceCounter::getFrequency
( ) :
int
public
static
HRTime\PerformanceCounter::getTicks
( ) :
int
public
static
HRTime\PerformanceCounter::getTicksSince
(
int
$start
) :
int
}
Table of Contents
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
— 确认测量是否在运行
HRTime\StopWatch::start
— Start time measurement
HRTime\StopWatch::stop
— Stop time measurement
User Contributed Notes
There are no user contributed notes for this page.
PHP8中文手册
由
站长在线
整理 版权归PHP文档组所有