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

Method currentTimeNanosUnsafe

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

* Returns the current Unix time in nanoseconds 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

91 * corrected, so it is not suitable for measuring elapsed time.
92 */
93 currentTimeNanosUnsafe(): bigint
94 /**
95 * Returns the current Unix time in nanoseconds.
96 *

Callers 9

TestClock.test.tsFile · 0.65
Clock.test.tsFile · 0.65
makeWithTransactionFunction · 0.65
HttpMiddleware.tsFile · 0.65
makeLogRecordFunction · 0.65
snapshotFunction · 0.65
effect.tsFile · 0.65
convertOtelTimeInputFunction · 0.65
OtelLogger.tsFile · 0.65

Implementers 1

ClockImplpackages/effect/src/internal/effect.ts

Calls

no outgoing calls

Tested by

no test coverage detected