Skip to content

global-clock overview


Table of contents


utils

GgGlobalClock (class)

A singleton class, providing ability to track time, fire ticks, provide time elapsed + tick delta. Starts as soon as accessed and counts time from 01/01/1970

Signature

export declare class GgGlobalClock {
  private constructor()
}

createChildClock (method)

Signature

createChildClock(autoStart: boolean): PausableClock