diff --git a/Storage/TimedEventLoop.cpp b/Storage/TimedEventLoop.cpp index 523f006a0..6b1b1a597 100644 --- a/Storage/TimedEventLoop.cpp +++ b/Storage/TimedEventLoop.cpp @@ -35,6 +35,10 @@ unsigned int TimedEventLoop::get_cycles_until_next_event() { return (unsigned int)std::max(cycles_until_event_, 0); } +unsigned int TimedEventLoop::get_input_clock_rate() { + return input_clock_rate_; +} + void TimedEventLoop::reset_timer() { subcycles_until_event_.set_zero(); cycles_until_event_ = 0; diff --git a/Storage/TimedEventLoop.hpp b/Storage/TimedEventLoop.hpp index bfe97eaad..e383e9683 100644 --- a/Storage/TimedEventLoop.hpp +++ b/Storage/TimedEventLoop.hpp @@ -54,6 +54,11 @@ namespace Storage { */ unsigned int get_cycles_until_next_event(); + /*! + @returns the input clock rate. + */ + unsigned int get_input_clock_rate(); + protected: /*! Sets the time interval, as a proportion of a second, until the next event should be triggered.