Function once

Returns elapsed time since initial call, however unlike since, timer stops when first invoked.

const elapsed = Stopwatch.once();
// ...do stuff
elapsed(); // Yields time since Stopwatch.once() was called
// ...do more stuff
elapsed(); // Is still the same number as above

See also: