# La clase HRTime\StopWatch

(PECL hrtime >= 0.4.3)

## Introducción

## Sinopsis de la Clase

class HRTime\StopWatch extends HRTime\PerformanceCounter {
/* Métodos */
public getElapsedTicks(): int
public getElapsedTime(integer `$unit` = ?): float
public getLastElapsedTicks(): int
public getLastElapsedTime(integer `$unit` = ?): float
public isRunning(): bool
public start(): void
public stop(): void
/* Métodos heredados */
public HRTime\PerformanceCounter::getFrequency(): int
public static HRTime\PerformanceCounter::getTicks(): int
public static HRTime\PerformanceCounter::getTicksSince(int `$start`): int
}

## Tabla de contenidos

- HRTime\StopWatch::getElapsedTicks — Get elapsed ticks for all intervals
- HRTime\StopWatch::getElapsedTime — Obtener el tiempo transcurrido para todos los intervalos
- HRTime\StopWatch::getLastElapsedTicks — Get elapsed ticks for the last interval
- HRTime\StopWatch::getLastElapsedTime — Obtener el tiempo transcurrido para el último intervalo
- HRTime\StopWatch::isRunning — Whether the measurement is running
- HRTime\StopWatch::start — Start time measurement
- HRTime\StopWatch::stop — Stop time measurement