package multicore-bench

  1. Overview
  2. Docs

Module Multicore_bench.Unit_of_timeSource

Dealing with units of time.

Sourcetype t = [
  1. | `s
    (*

    seconds

    *)
  2. | `ms
    (*

    milliseconds

    *)
  3. | `mus
    (*

    microseconds

    *)
  4. | `ns
    (*

    nanoseconds

    *)
]

Represents a unit of time.

Sourceval to_multiplier : [< t ] -> float

to_multiplier t converts the unit of time t to a multiplier.

Sourceval to_mnemonic : [< t ] -> string

to_mnemonic t returns a human readable mnemonic for the unit of time t.