assassin-bug/framework/scheduler/timer.d.ts

15 lines
361 B
TypeScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
import { SchedulerNode } from './node';
export declare class Timer {
time: number;
lastTime: number;
fluctuation: number;
node: SchedulerNode;
isStarted: boolean;
intervalID: number;
constructor(time: number, node: SchedulerNode);
start(): void;
stop(): void;
schedule(): void;
handleResolve(): void;
}