W3cubDocs

/Pony

Nanos

[Source]

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

[Source]

new val create()
: Nanos val^

Returns

Public Functions

from_seconds

[Source]

fun box from_seconds(
  t: U64 val)
: U64 val

Parameters

Returns

from_millis

[Source]

fun box from_millis(
  t: U64 val)
: U64 val

Parameters

Returns

from_micros

[Source]

fun box from_micros(
  t: U64 val)
: U64 val

Parameters

Returns

from_seconds_f

[Source]

fun box from_seconds_f(
  t: F64 val)
: U64 val

Parameters

Returns

from_millis_f

[Source]

fun box from_millis_f(
  t: F64 val)
: U64 val

Parameters

Returns

from_micros_f

[Source]

fun box from_micros_f(
  t: F64 val)
: U64 val

Parameters

Returns

from_wall_clock

[Source]

fun box from_wall_clock(
  wall: (I64 val , I64 val))
: U64 val

Parameters

Returns

eq

[Source]

fun box eq(
  that: Nanos val)
: Bool val

Parameters

Returns

ne

[Source]

fun box ne(
  that: Nanos val)
: Bool val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/time-Nanos