Returns a function that reports an 'infinite' elapsed time. this can be useful as an initialiser for Stopwatch.since et al.
Stopwatch.since
// Init clicked to be an infinite timelet clicked = Stopwatch.infinity();document.addEventListener('click', () => { // Now that click has happened, we can assign it properly clicked = Stopwatch.since();}); Copy
// Init clicked to be an infinite timelet clicked = Stopwatch.infinity();document.addEventListener('click', () => { // Now that click has happened, we can assign it properly clicked = Stopwatch.since();});
Returns a function that reports an 'infinite' elapsed time. this can be useful as an initialiser for
Stopwatch.since
et al.