manifold/common/util/time.ts

7 lines
198 B
TypeScript
Raw Normal View History

export const MINUTE_MS = 60 * 1000
export const HOUR_MS = 60 * MINUTE_MS
2022-04-19 06:47:58 +00:00
export const DAY_MS = 24 * HOUR_MS
export const sleep = (ms: number) =>
new Promise((resolve) => setTimeout(resolve, ms))