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

Method currentTimeMillisUnsafe

packages/effect/src/Clock.ts:65–65  ·  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

63 * corrected, so it is not suitable for measuring elapsed time.
64 */
65 currentTimeMillisUnsafe(): number
66 /**
67 * Returns the current Unix time in milliseconds.
68 *

Callers 15

getFunction · 0.65
getManyFunction · 0.65
TestClock.test.tsFile · 0.65
makeFailoverStorageFunction · 0.65
toStepWithMetadataFunction · 0.65
Cache.tsFile · 0.65
hasExpiredFunction · 0.65
keysFunction · 0.65
processFunction · 0.65
Pool.tsFile · 0.65
releaseFunction · 0.65
RcMap.tsFile · 0.65

Implementers 1

ClockImplpackages/effect/src/internal/effect.ts

Calls

no outgoing calls

Tested by 1

makeFailoverStorageFunction · 0.52