Module Simulator.Clock

type t = int

The type representing a timestamp.

val set_timestamp : t -> unit

Sets the timestamp of the simulation clock to ts.

  • parameter ts

    the new timestamp for the simulation clock

val get_timestamp : unit -> t

Get the current timestamp of the simulation clock.

val zero : t

Get the timestamp for clock zero.

val to_string : t -> string

Converts a timestamp to string.

  • parameter ts

    the timestamp in non-string form

val reset : unit -> unit

Reset the simulation clock back to zero.