Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/web/src/events/Timer.ts>Timer

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
variable Timer
import { Timer } from "https://deno.land/x/caviar@2.6.9/web/src/events/Timer.ts";

type

(clock: Clock, config: Partial<{ duration: number; repeat: number; elapsed: number; delay: number; update: (delta: number) => boolean; onStart: () => void; onUpdate: (delta: number, progress: number) => void; onRepeat: (repeatCount: number) => void; onComplete: () => void; }>) => void