zappyzep/src/uptime.ts

10 lines
148 B
TypeScript
Raw Normal View History

2019-04-23 05:58:50 +03:00
let start = 0;
export function startUptimeCounter() {
start = Date.now();
}
export function getCurrentUptime() {
return Date.now() - start;
}