Function elapsedTicksAbsolute

A timer that progresses with each call to elapsed.

The first call to elapsed will return 1.

const timer = elapsedTicksAbsolute();
timer.reset(); // Reset to 0
timer.elapsed; // Number of ticks (and also increment ticks)
timer.peek; // Number of ticks (without incrementing)

Like other Timer functions, returns with a isDone field, but this will always return true.

  • Returns Timer & {
        peek: number;
    }