Clock Timer WASM Demo

This demo demonstrates the clock-timer WebAssembly module running in the browser.

Timer

00:00:10

Example Code:

const timer = new Timer(0, 0, 10); // 10 second timer timer.start().then(() => { console.log('Timer completed!'); });

Stopwatch

00:00:00

Example Code:

const stopwatch = new Stopwatch(); stopwatch.start(); // Later: const elapsed = stopwatch.stop(); console.log(`Elapsed time: ${elapsed} seconds`); stopwatch.reset();