W3cubDocs

/OCaml

Module Runtime_events.Timestamp

module Timestamp: sig .. end
type t 

Type for the int64 timestamp to allow for future changes.

val to_int64 : t -> int64
val get_current : unit -> t

Access the current timestamp. The timestamp is incremented by one every nanosecond, but the starting point is unspecified.

  • Since 5.4