mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-27 06:12:05 -07:00
- Track follow-up cleanup work in Backlog.md - Replace Date.now usage with shared nowMs helper - Add launcher args/parser and core regression tests
9 lines
200 B
TypeScript
9 lines
200 B
TypeScript
export function nowMs(): number {
|
|
const perf = globalThis.performance;
|
|
if (perf) {
|
|
return Math.floor(perf.timeOrigin + perf.now());
|
|
}
|
|
|
|
return Number(process.hrtime.bigint() / 1000000n);
|
|
}
|