API

Interface ITimerData<T>

An interface defining the data sent by the timer

interface ITimerData<T> {
    completeRate: number;
    currentTime: number;
    deltaTime: number;
    payload: T;
    startTime: number;
}

Type Parameters

  • T
Index
completeRate: number

How much is completed, in [0.0...1.0]. Note that this CAN be higher than 1 due to the fact that we don't actually measure time but delta between observable calls

currentTime: number

Time now

deltaTime: number

Time passed since started

payload: T

What the registered observable sent in the last count

startTime: number

When did it start