9 lines
148 B
TypeScript
9 lines
148 B
TypeScript
let start = 0;
|
|
|
|
export function startUptimeCounter() {
|
|
start = Date.now();
|
|
}
|
|
|
|
export function getCurrentUptime() {
|
|
return Date.now() - start;
|
|
}
|