You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
625 B
35 lines
625 B
(*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
open! IStd
|
|
|
|
type t
|
|
|
|
type counter
|
|
|
|
type 'a evaluation_result = {result: 'a; 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 user_time : t -> float
|
|
|
|
val sys_time : t -> float
|
|
|
|
val wall_time : t -> float
|
|
|
|
val pp : field:string -> Format.formatter -> t -> unit
|
|
|
|
val timed_evaluate : f:(unit -> 'a) -> 'a evaluation_result
|