HTT Documentation

htt.time

  • Ananosecond

    a value meaning some number of nanoseconds

    Definition
    integer
  • Fntimestamp() → integer

    Return time, in seconds, relative to UTC 1970-01-01.

    Return-value is signed because it is possible to have dates before the epoch

    Returns
    • time_s: integer
      • seconds since the epoch
  • Fntimestamp_ms() → integer

    Return time, in milliseconds, relative to UTC 1970-01-01.

    Return-value is signed to allow for dates before the epoch.

    Returns
    • time_ms: integer
      • milliseconds since the epoch
  • Fnsleep(nanosecond) → nil

    Sleep for some duration of time measured in nanoseconds*.

    Underlying implementation mentions that spurious wakeups are possible and that no precision of timing is guaranteed.

    Parameters
    • duration_ns: nanosecond
      • duration, in nanoseconds, to sleep
    Returns
    No return value
  • Cns_per_us

    The number of nanoseconds per microsecond.

    Type
    nanosecond
  • Cns_per_ms

    The number of nanoseconds per millisecond.

    Type
    nanosecond
  • Cns_per_s

    The number of nanoseconds per second.

    Type
    nanosecond
  • Cns_per_min

    The number of nanoseconds per minute.

    Type
    nanosecond