Module Awskit_s3_sim.Clock

type t

Mutable deterministic clock used for timestamps and retry sleeps.

val create : ?now:Ptime.t -> unit -> t

Create a clock. Defaults to a stable initial timestamp when now is omitted.

val now : t -> Ptime.t

Return the current simulated time.

val advance : t -> Ptime.Span.t -> unit

Advance simulated time by a span.

val advance_ms : t -> int -> unit

Advance simulated time by milliseconds.