Module Time_stamp_counter.Cycles

module Cycles: sig .. end
Small routines for working with the timestamp counter. The snapshot is machine specific information that is calculated once during a run and cached, though the first time it is requested it may take several 100 milliseconds. Cycle information captured on one machine can be translated to Core.Time.t on another machine only if the a snapshot of the first machine is also available

type t = private int 
type snapshot 
val now : unit -> t
val add : t ->
t -> t
val diff : t ->
t -> t
val to_cycle_count : t -> int
val of_int : int -> t
val get_snapshot : unit -> snapshot
val cpu_mhz : unit -> float
val to_ns : ?snapshot:snapshot ->
t -> int
val to_time : ?snapshot:snapshot ->
t -> Core.Time.t
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read_ml.reader
val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write_ml.writer
val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val bin_snapshot : snapshot Bin_prot.Type_class.t
val bin_read_snapshot : snapshot Bin_prot.Read_ml.reader
val bin_read_snapshot_ : snapshot Bin_prot.Unsafe_read_c.reader
val bin_read_snapshot__ : (int -> snapshot)
Bin_prot.Unsafe_read_c.reader
val bin_reader_snapshot : snapshot Bin_prot.Type_class.reader
val bin_size_snapshot : snapshot Bin_prot.Size.sizer
val bin_write_snapshot : snapshot Bin_prot.Write_ml.writer
val bin_write_snapshot_ : snapshot Bin_prot.Unsafe_write_c.writer
val bin_writer_snapshot : snapshot Bin_prot.Type_class.writer
val snapshot_of_sexp : Sexplib.Sexp.t -> snapshot
val sexp_of_snapshot : snapshot -> Sexplib.Sexp.t