UNPKG

animation-frame-loop

Version:

A small wrapper to take care of tracking delta time between frames. Useful for animations or other frame reliant things.

6 lines (5 loc) 108 B
export interface FrameTime { deltaTime: number; totalElapsedTime: number; currentFps: number; }