HRTime\PerformanceCounter::getTicksSince
HRTime\StopWatch::getElapsedTicks
HRTime
PHP Manual
La classe HRTime\StopWatch
(PECL hrtime >= 0.4.3)
Introduction
Synopsis de la classe
HRTime\StopWatch
extends
HRTime\PerformanceCounter
{
/* Méthodes */
public
int
getElapsedTicks
(
void
)
public
float
getElapsedTime
([
integer
$unit
] )
public
int
getLastElapsedTicks
(
void
)
public
float
getLastElapsedTime
([
integer
$unit
] )
public
bool
isRunning
(
void
)
public
void
start
(
void
)
public
void
stop
(
void
)
/* Méthodes héritées */
public
int
HRTime\PerformanceCounter::getFrequency
(
void
)
public
static
int
HRTime\PerformanceCounter::getTicks
(
void
)
public
static
int
HRTime\PerformanceCounter::getTicksSince
(
int
$start
)
}
Sommaire
HRTime\StopWatch::getElapsedTicks
— Get elapsed ticks for all intervals
HRTime\StopWatch::getElapsedTime
— Récupère le temps écoulé pour tous les intervalles
HRTime\StopWatch::getLastElapsedTicks
— Get elapsed ticks for the last interval
HRTime\StopWatch::getLastElapsedTime
— Récupère le temps écoulé pour le dernier intervalle
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