UNPKG

async-ratelimiter

Version:
8 lines (5 loc) 208 B
'use strict' const time = Date.now() const start = process.hrtime.bigint() // Return high-precision timestamp in milliseconds module.exports.now = () => time + Number(process.hrtime.bigint() - start) / 1e6