1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +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
+7
View File
@@ -70,3 +70,10 @@ void TimedEventLoop::set_next_event_time_interval(Time interval)
_stepper.reset(new SignalProcessing::Stepper(_event_interval.clock_rate, _input_clock_rate));
}
}
Time TimedEventLoop::get_time_into_next_event()
{
Time result = _event_interval;
result.length = _time_into_interval;
return result;
}