UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

14 lines 377 B
const NS_TO_S = 1e9; // seconds takes a tuple of [seconds, nanoseconds] // and returns the time in seconds const seconds = (diff) => diff[0] + diff[1] / NS_TO_S; const newTimer = () => { const now = process.hrtime(); return () => seconds(process.hrtime(now)); }; const timer = { seconds, new: newTimer, }; export default timer; //# sourceMappingURL=timer.js.map