1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Extended to permit subclasses that are interested to get sub-run_for information about event times.

This commit is contained in:
Thomas Harte
2017-09-10 14:44:38 -04:00
parent 90c7056d12
commit 90d2347c90
2 changed files with 21 additions and 3 deletions
+9
View File
@@ -66,6 +66,15 @@ namespace Storage {
*/
virtual void process_next_event() = 0;
/*!
Optionally allows a subclass to track time within run_for periods; if a subclass implements
advnace then it will receive advance increments that add up to the number of cycles supplied
to run_for, but calls to process_next_event will be precisely interspersed. No time will carry
forward between calls into run_for; a subclass can receive arbitrarily many instructions to
advance before receiving a process_next_event.
*/
virtual void advance(const Cycles cycles) {};
/*!
Resets timing, throwing away any current internal state. So clears any fractional ticks
that the event loop is currently tracking.