package windtrap

  1. Overview
  2. Docs
One library for all your OCaml tests

Install

dune-project
 Dependency

Authors

Maintainers

Sources

windtrap-0.1.0.tbz
sha256=2241b294b24ed5d56ea8b834d296e6fabc5dbdd924a89f51c14b00da66c50a25
sha512=c6cf83028bb09d0f2afeb38fce6825620873a6bbeff4b5b77e928bc2fc69262d49fe341961cba2b451c9dc9bd0df414f06bb73020c7131b125c6abd85c6bc5dd

doc/windtrap.clock/Clock/index.html

Module ClockSource

Monotonic clock for timing tests.

Provides access to a monotonic clock suitable for measuring elapsed time. Unlike wall-clock time, monotonic time never goes backwards and is unaffected by system time adjustments.

Derived from mtime.

Sourcetype counter

An opaque value representing a point in monotonic time. Use with count or count_s to measure elapsed time.

Sourceval counter : unit -> counter

counter () samples the current monotonic time.

Sourceval count : counter -> int64

count start returns the elapsed nanoseconds since start. The result is always non-negative.

Sourceval count_s : counter -> float

count_s start returns the elapsed seconds since start as a float. The result is always non-negative.