Add `SimHarness.RunMillis(t)` function

For now, this is just a wrapper around RunCycles(n), but the two could diverge
in the future. RunMillis(t) should always cause `t` milliseconds to elapse in
the simulator, regardless of how many cycles that takes.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/946/head
Michael Richters 4 years ago committed by Jesse Vincent
parent 3a16fc95fb
commit 69fc1dc0e2
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -29,6 +29,9 @@ class SimHarness {
public: public:
void RunCycle(); void RunCycle();
void RunCycles(size_t n); void RunCycles(size_t n);
void RunMillis(size_t t) {
RunCycles(t);
}
void Press(KeyAddr key_addr); void Press(KeyAddr key_addr);
void Release(KeyAddr key_addr); void Release(KeyAddr key_addr);

Loading…
Cancel
Save