MCPcopy Create free account
hub / github.com/Effect-TS/effect / currentTimeMillisUnsafe

Method currentTimeMillisUnsafe

packages/effect/src/Clock.ts:69–69  ·  view source on GitHub ↗

* Returns the current Unix time in milliseconds unsafely. * * **When to use** * * Use to read a wall-clock timestamp synchronously when you already have a * `Clock` service and can accept non-effectful access. * * **Gotchas** * * The value can move backward or forward when

()

Source from the content-addressed store, hash-verified

67 * corrected, so it is not suitable for measuring elapsed time.
68 */
69 currentTimeMillisUnsafe(): number
70 /**
71 * Returns the current Unix time in milliseconds.
72 *

Callers 15

currentTimeMillisUnsafeFunction · 0.65
PgPool.tsFile · 0.65
expiredFunction · 0.65
getFunction · 0.65
getManyFunction · 0.65
handleFromClientFunction · 0.65
getRuntimeFunction · 0.65
makeFreezableClockFunction · 0.65

Implementers 1

ClockImplpackages/effect/src/internal/effect.ts

Calls

no outgoing calls

Tested by 4

currentTimeMillisUnsafeFunction · 0.52
makeFreezableClockFunction · 0.52
currentTimeMillisUnsafeFunction · 0.52
makeFailoverStorageFunction · 0.52