UNPKG

640 BTypeScriptView Raw
1/**
2 * Starts the frames-per-second meter.
3 */
4export function start(): void;
5
6/**
7 * Stops the frames-per-second meter.
8 */
9export function stop(): void;
10
11/**
12 * Returns a valid indicating whether the frames-per-second meter is currently running.
13 */
14export function running(): boolean;
15
16/**
17 * Adds a callback function to be called each time FPS data is due to be reported. Returns an unique id which can be used to remove this callback later.
18 */
19export function addCallback(callback: (fps: number, minFps?: number) => void): number;
20
21/**
22 * Removes the callback with the specified id.
23 */
24export function removeCallback(id: number);