Function interval

Returns the interval between the start and each subsequent call.

const interval = Stopwatch.interval();
interval(); // Time from Stopwatch.interval()
interval(); // Time since last interval() call

See also:

  • since: time since first call
  • once: time between two events