Module clock

Source

Structsยง

Instant
MonotonicClock
A monotone clock used for Instant simulation.

Enumsยง

InstantKind ๐Ÿ”’
MonotonicClockKind ๐Ÿ”’

Constantsยง

NANOSECONDS_PER_BASIC_BLOCK ๐Ÿ”’
When using a virtual clock, this defines how many nanoseconds we pretend are passing for each basic block. This number is pretty random, but it has been shown to approximately cause some sample programs to run within an order of magnitude of real time on desktop CPUs. (See tests/pass/shims/time-with-isolation*.rs.)