This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class HighResolutionTimer { | |
private totalTicks = 0; | |
private timer: number | undefined; | |
private startTime: number | undefined; | |
private currentTime: number | undefined; | |
private deltaTime = 0; | |
constructor(public duration: number, public callback: (timer: HighResolutionTimer) => void) { | |
} |