Module Multicore_bench.Unit_of_rate

Dealing with units of rate.

type t = [
  1. | `_1
    (*

    1/s

    *)
  2. | `k
    (*

    103/s or k/s

    *)
  3. | `M
    (*

    106/s or M/s

    *)
  4. | `G
    (*

    109/s or G/s

    *)
]

Represents a unit of rate, i.e. how many per second.

val to_divisor : [< t ] -> float

to_divisor t converts the unit of rate t to a divisor.

val to_mnemonic : [< t ] -> string

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