Module IBase.ExecutionDuration

type t
val pp : prefix:string -> Stdlib.Format.formatter -> t -> unit
type counter
type 'a evaluation_result = {
  1. result : 'a;
  2. execution_duration : t;
}
val zero : t
val counter : unit -> counter
val since : counter -> t
val add_duration_since : t -> counter -> t
val add : t -> t -> t
val wall_time : t -> Mtime.span
val total_useful_s : t -> float

seconds of user plus system time

val timed_evaluate : f:(unit -> 'a) -> 'a evaluation_result
val log : prefix:string -> Logging.debug_kind -> t -> unit

log to debug logs and to Scuba

val to_scuba_entries : prefix:string -> t -> LogEntry.t list