From 69fc1dc0e2f95efa9904398bde64e477140a4f3b Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Sun, 18 Oct 2020 22:15:16 -0500 Subject: [PATCH] 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 --- testing/SimHarness.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/SimHarness.h b/testing/SimHarness.h index c850d671..6d446aee 100644 --- a/testing/SimHarness.h +++ b/testing/SimHarness.h @@ -29,6 +29,9 @@ class SimHarness { public: void RunCycle(); void RunCycles(size_t n); + void RunMillis(size_t t) { + RunCycles(t); + } void Press(KeyAddr key_addr); void Release(KeyAddr key_addr);