diff options
Diffstat (limited to 'src/utils/timer.hpp')
-rw-r--r-- | src/utils/timer.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/timer.hpp b/src/utils/timer.hpp index 5be0e3c..f565904 100644 --- a/src/utils/timer.hpp +++ b/src/utils/timer.hpp @@ -32,6 +32,7 @@ long long int system_time_s(); class frequency_clock_t { private: + float unit_; ///< unit_ - multiplicator to make operation to be in the right unit (milli, micro, nano, etc) float frequency_; ///< the clock frequency in Hz. unsigned long last_tick_; ///< the last time (in milliseconds since startup) that the clock ticked. time_function_t time_function_; ///< a function returning current time @@ -42,7 +43,8 @@ public: frequency_clock_t(float frequency, unsigned long last_tick, time_function_t time_function); float get_frequency() const; - static float frequency_to_period(float frequency); + + float frequency_to_period(); bool started(); time_function_t get_time_function(); bool elapsed(bool stagger); |