@monokonet/clock
v1.0.0
Published
A lightweight fixed-step runtime clock.
Readme
@monokonet/clock
A lightweight fixed-step runtime clock.
Install
pnpm add @monokonet/clockUsage
import { createClock } from '@monokonet/clock';
const clock = createClock({
fps: 60.0,
});
clock.watch(({ delta, time, step }) => {
console.log(delta, time, step);
});License
Apache-2.0
