« HRTime\PerformanceCounter::getTicksSince
HRTime\StopWatch::getElapsedTicks »
PHP Manual
HRTime
The HRTime\StopWatch class
The HRTime\StopWatch class
(PECL hrtime >= 0.4.3)
Introduction
Class synopsis
HRTime\StopWatch
extends
HRTime\PerformanceCounter
{
/* Methods */
public
getElapsedTicks
(
void
) :
int
public
getElapsedTime
([
int
$unit
] ) :
float
public
getLastElapsedTicks
(
void
) :
int
public
getLastElapsedTime
([
int
$unit
] ) :
float
public
isRunning
(
void
) :
bool
public
start
(
void
) :
void
public
stop
(
void
) :
void
/* Inherited methods */
public
static
HRTime\PerformanceCounter::getFrequency
(
void
) :
int
public
static
HRTime\PerformanceCounter::getTicks
(
void
) :
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
— Whether the measurement is running
HRTime\StopWatch::start
— Start time measurement
HRTime\StopWatch::stop
— Stop time measurement