We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68d2cd commit 4ef48deCopy full SHA for 4ef48de
simln-lib/src/clock.rs
@@ -61,6 +61,16 @@ impl SimulationClock {
61
})
62
}
63
64
+ /// Returns the instant that the simulation clock was started at.
65
+ pub fn get_start_instant(&self) -> Instant {
66
+ self.start_instant
67
+ }
68
+
69
+ /// Returns the speedup multiplier applied to time.
70
+ pub fn get_speedup_multiplier(&self) -> u16 {
71
+ self.speedup_multiplier
72
73
74
/// Calculates the current simulation time based on the current wall clock time.
75
///
76
/// Separated for testing purposes so that we can fix the current wall clock time and elapsed interval.
0 commit comments