From 76a48e0a12a6a27f001c54127c35c913d10df001 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Mon, 19 Oct 2020 10:26:37 -0500 Subject: [PATCH] Add `RunFor*` variants for `Cycles` and `Millis` functions Signed-off-by: Michael Richters --- testing/SimHarness.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/SimHarness.h b/testing/SimHarness.h index 6d446aee..0f690a89 100644 --- a/testing/SimHarness.h +++ b/testing/SimHarness.h @@ -29,9 +29,16 @@ class SimHarness { public: void RunCycle(); void RunCycles(size_t n); + void RunForCycles(size_t n) { + RunCycles(n); + } + void RunMillis(size_t t) { RunCycles(t); } + void RunForMillis(size_t t) { + RunMillis(t); + } void Press(KeyAddr key_addr); void Release(KeyAddr key_addr);