time Nanos - tadashi9e/gmp4pony GitHub Wiki
Collection of utility functions for converting various durations of time to nanoseconds, for passing to other functions in the time package.
primitive val Nanosnew val create()
: Nanos val^- Nanos val^
fun box from_seconds(
t: U64 val)
: U64 val- t: U64 val
- U64 val
fun box from_millis(
t: U64 val)
: U64 val- t: U64 val
- U64 val
fun box from_micros(
t: U64 val)
: U64 val- t: U64 val
- U64 val
fun box from_seconds_f(
t: F64 val)
: U64 val- t: F64 val
- U64 val
fun box from_millis_f(
t: F64 val)
: U64 val- t: F64 val
- U64 val
fun box from_micros_f(
t: F64 val)
: U64 val- t: F64 val
- U64 val
fun box from_wall_clock(
wall: (I64 val , I64 val))
: U64 val- U64 val
fun box eq(
that: Nanos val)
: Bool val- that: Nanos val
- Bool val
fun box ne(
that: Nanos val)
: Bool val- that: Nanos val
- Bool val