1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! The ONE place the runtime reads the wall clock. Every reading flows into
//! the scheduler as `EventIn::ClockReading` and is journaled in decision
//! records — the scheduler core cannot tell the time (its clippy.toml and
//! the CI dep-tree check enforce it), so this seam is the whole clock
//! surface, and replay/verify substitute journaled readings here.
/// A clock the driver reads. `SystemClock` for live runs; tests and
/// verify-mode inject fixed sequences.
/// Live wall clock.
;
/// A scripted clock for tests and replay: returns the given readings in
/// order, then keeps returning the last (a run that reads more often than
/// the script anticipated must not go backwards).