libraryextensions/clock/lib/Clock.xtl
Clock.xtl -- the facade of the clock extension: wall-clock and monotonic time, which X_eTaL does not have, for timestamps and timing. Import: "ck:" u_se< "Clock" Run with xetal-x (xetal-x --ext DIR puts this directory on XETAL_PATH). Each signature line is written out by the binding macro (lib/Ffi.xtlm).
ˡn̲ow : Unit -> Float
Seconds since 1970-01-01 UTC, with the fraction.
"n_ow : unit -> float" ᶠᶠⁱb̲ind< "clock/now"
ˡi̲so : Unit -> Char
The current time as ISO 8601 UTC text, to the millisecond.
"i_so : unit -> text" ᶠᶠⁱb̲ind< "clock/iso"
ˡi̲soOf : Num a => a -> Char
Unix seconds as ISO 8601 UTC text: ck:i_soOf 0 is 1970-01-01T00:00:00.000Z.
"i_soOf : float -> text" ᶠᶠⁱb̲ind< "clock/iso_of"
ˡm̲illis : Unit -> Float
Milliseconds on a monotonic clock (it never goes back).
"m_illis : unit -> float" ᶠᶠⁱb̲ind< "clock/millis"
Used in: ˡt̲ime