This demo demonstrates the clock-timer WebAssembly module running in the browser.
const timer = new Timer(0, 0, 10); // 10 second timer
timer.start().then(() => {
console.log('Timer completed!');
});
const stopwatch = new Stopwatch();
stopwatch.start();
// Later:
const elapsed = stopwatch.stop();
console.log(`Elapsed time: ${elapsed} seconds`);
stopwatch.reset();