Files
Panayot Cankov e135c20b14 Rename the files
2016-05-26 14:30:25 +03:00

30 lines
821 B
TypeScript

/**
* Allows you to capture the frames-per-second metrics of your application.
*/
declare module "fps-meter" {
/**
* Starts the frames-per-second meter.
*/
export function start(): void;
/**
* Stops the frames-per-second meter.
*/
export function stop(): void;
/**
* Returns a valid indicating whether the frames-per-second meter is currently running.
*/
export function running(): boolean;
/**
* 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.
*/
export function addCallback(callback: (fps: number, minFps?: number) => void): number;
/**
* Removes the callback with the specified id.
*/
export function removeCallback(id: number);
}