Spec-Zone.ru › Pony

Time

[Source]

A collection of ways to fetch the current time.

primitive val Time

Constructors

create

[Source]

new val create()
: Time val^

Returns

  • Time val^

Public Functions

now

[Source]

The wall-clock adjusted system time with nanoseconds. Return: (seconds, nanoseconds)

fun box now()
: (I64 val , I64 val)

Returns

  • (I64 val , I64 val)

seconds

[Source]

The wall-clock adjusted system time.

fun box seconds()
: I64 val

Returns

  • I64 val

millis

[Source]

Monotonic unadjusted milliseconds.

fun box millis()
: U64 val

Returns

  • U64 val

micros

[Source]

Monotonic unadjusted microseconds.

fun box micros()
: U64 val

Returns

  • U64 val

nanos

[Source]

Monotonic unadjusted nanoseconds.

fun box nanos()
: U64 val

Returns

  • U64 val

cycles

[Source]

Processor cycle count. Don't use this for performance timing, as it does not control for out-of-order execution.

fun box cycles()
: U64 val

Returns

  • U64 val

perf_begin

[Source]

Get a cycle count for beginning a performance testing block. This will will prevent instructions from before this call leaking into the block and instructions after this call being executed earlier.

fun box perf_begin()
: U64 val

Returns

  • U64 val

perf_end

[Source]

Get a cycle count for ending a performance testing block. This will will prevent instructions from after this call leaking into the block and instructions before this call being executed later.

fun box perf_end()
: U64 val

Returns

  • U64 val

eq

[Source]

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

Parameters

  • that: Time val

Returns

  • Bool val

ne

[Source]

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

Parameters

  • that: Time val

Returns

  • Bool val

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API