import { Clock } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
Object for keeping track of time.
Properties
When the clock is running, It holds the time elapsed between the start of the clock to the previous update. This parameter is in seconds of three decimal places.
When the clock is running, It holds the previous time from a update. This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
Methods
getDelta(): number
Get the seconds passed since the last call to this method.
getElapsedTime(): number
Get the seconds passed since the clock started.
start(): void
Starts clock.
stop(): void
Stops clock.