Returns a function that reports an 'infinite' elapsed time. this can be useful as an initialiser for elapsedSince et al.
elapsedSince
// Init clicked to be an infinite timelet clicked = elapsedInfinity();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 = elapsedInfinity();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
elapsedSince
et al.