jhurliman/node-rate-limiter

Monotonic Time

Closed this issue · 1 comments

If the computer's time changes, Date() will be affected, that's why a monotonic time should be used, such as process.hrtime.

I'm happy to merge this as long as a fallback is provided for environments that don't have process or process.hrtime