mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-03 09:06:13 +08:00
11 lines
183 B
TypeScript
11 lines
183 B
TypeScript
import { Timer, Stopwatch } from 'sharp-timer';
|
|
|
|
let timer = new Timer(10);
|
|
|
|
timer.onIntervalElapsing(i => { });
|
|
timer.onIntervalElapsed(() => {
|
|
timer.stop();
|
|
});
|
|
|
|
timer.start();
|