Nanos¶
Collection of utility functions for converting various durations of time to nanoseconds, for passing to other functions in the time package.
primitive val Nanos
Constructors¶
create¶
new val create()
: Nanos val^
Returns¶
- Nanos val^
Public Functions¶
from_seconds¶
fun box from_seconds(
t: U64 val)
: U64 val
Parameters¶
- t: U64 val
Returns¶
- U64 val
from_millis¶
fun box from_millis(
t: U64 val)
: U64 val
Parameters¶
- t: U64 val
Returns¶
- U64 val
from_micros¶
fun box from_micros(
t: U64 val)
: U64 val
Parameters¶
- t: U64 val
Returns¶
- U64 val
from_seconds_f¶
fun box from_seconds_f(
t: F64 val)
: U64 val
Parameters¶
- t: F64 val
Returns¶
- U64 val
from_millis_f¶
fun box from_millis_f(
t: F64 val)
: U64 val
Parameters¶
- t: F64 val
Returns¶
- U64 val
from_micros_f¶
fun box from_micros_f(
t: F64 val)
: U64 val
Parameters¶
- t: F64 val
Returns¶
- U64 val
from_wall_clock¶
fun box from_wall_clock(
wall: (I64 val , I64 val))
: U64 val
Parameters¶
Returns¶
- U64 val
eq¶
fun box eq(
that: Nanos val)
: Bool val
Parameters¶
- that: Nanos val
Returns¶
- Bool val
ne¶
fun box ne(
that: Nanos val)
: Bool val
Parameters¶
- that: Nanos val
Returns¶
- Bool val