HRTime\StopWatch::getLastElapsedTime

(PECL hrtime >= 0.4.3)

HRTime\StopWatch::getLastElapsedTimeObtener el tiempo transcurrido para el último intervalo

Descripción

public HRTime\StopWatch::getLastElapsedTime(integer $unit = ?): float

Obtener el tiempo transcurrido para el intervalo anteriormente cerrado.

Parámetros

unit

La unidad de tiempo representada por una constante HRTime\Unit. La predeterminada es HRTime\Unit::SECOND.

Valores devueltos

Devuelve un valor de tipo float indicando el tiempo transcurrido.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top