UNPKG

frame-duration

Version:

A lib for calculating the duration of frame dynamically, based on requestAnimationFrame, default is 1000 / 30. The actual duration will be calculated after 15 frames.

12 lines (10 loc) 230 B
declare const FrameDuration: { times: number duration: number update(currDuration: number): void /** * @return { Promise<number> } actual duration * */ correct(): Promise<number> } export default FrameDuration