stack

Home > @infiniteobjects/core-library-web > Duration > fromNowHr

Duration.fromNowHr() method

Return the amount of Milliseconds passed since startTime

Signature:

static fromNowHr(startTime: HRTime): Milliseconds;

Parameters

Parameter Type Description
startTime HRTime Start time (high resolution) from node.hrtime()

Returns:

Milliseconds

Remarks

This is a high resolution diff, used for clocks and microtasks