Module Multicore_bench.Unit_of_time

Dealing with units of time.

type t = [
  1. | `s
    (*

    seconds

    *)
  2. | `ms
    (*

    milliseconds

    *)
  3. | `mus
    (*

    microseconds

    *)
  4. | `ns
    (*

    nanoseconds

    *)
]

Represents a unit of time.

val to_multiplier : [< t ] -> float

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

val to_mnemonic : [< t ] -> string

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