Source

(* The functions in this module are implemented on systems that support posix timers *)openCore.Stdtypet=|Realtime|Monotonic|Process_cpu|Process_threadvalall:tlistvalto_string:t->string(* returns the resulution of the given clock in nanoseconds *)valgetres:(t->Int63.t)Or_error.t(* returns the current value of the given clock in nanoseconds *)valgettime:(t->Int63.t)Or_error.t(* sleeps the current thread for the specified number of nanoseconds *)(*val nanosleep : (t -> int -> unit) Or_error.t *)(* [min_interval t] returns the minimum measurable interval for t in nanoseconds *)valmin_interval:(t->Int63.t)Or_error.t(* [cost t] returns the cost of calling gettime with the given t int nanoseconds *)valmean_gettime_cost:(measure:t->using:t->Int63.t)Or_error.t