1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Added ability to query how long since the new interval was set to the timed event loop. Discovered that LCM will returning the net effect of the common factors only. Otherwise continued iterating towards time preservation.

This commit is contained in:
Thomas Harte
2016-08-03 07:49:00 -04:00
parent a3a3486f54
commit e15241dc3c
5 changed files with 27 additions and 6 deletions
+6
View File
@@ -73,6 +73,12 @@ namespace Storage {
*/
void jump_to_next_event();
/*!
@returns the amount of time that has passed since the last call to @c set_next_time_interval,
which will always be less than or equal to the time that was supplied to @c set_next_time_interval.
*/
Time get_time_into_next_event();
private:
unsigned int _input_clock_rate;
Time _event_interval;