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