📖 INDEX
LOADING ENGINE...
Clock
THREE.JS REFERENCE // clock
Object for keeping track of time.
Syntax
const clock = new THREE.Clock();
console.log(clock.getElapsedTime());Examples
Example 01Basic Usage
const clock = new THREE.Clock();
console.log(clock.getElapsedTime());Best Practices
- Consult the official Three.js documentation for deeper understanding.
- Be mindful of performance when creating many objects or geometries.