UNPKG

timeout-percentage

Version:

Similar to setTimeout, but with multiple intervals to report elapsed time.

16 lines (14 loc) 333 B
/** * Global variables */ Globals = { messages:{ totalTimeoutNotPresent: "options.totalTimeout should be provided and be non-zero.", numberOfIntervalsNotPresent: "options.numberOfIntervals should be provided and be non-zero." }, idCounter: 0, timers: {} }; var exports = (module.exports = { Globals: Globals });