diff options
Diffstat (limited to 'CAN-binder/low-can-binding/utils')
-rw-r--r-- | CAN-binder/low-can-binding/utils/timer.cpp | 5 | ||||
-rw-r--r-- | CAN-binder/low-can-binding/utils/timer.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CAN-binder/low-can-binding/utils/timer.cpp b/CAN-binder/low-can-binding/utils/timer.cpp index 4584b859..eb79f853 100644 --- a/CAN-binder/low-can-binding/utils/timer.cpp +++ b/CAN-binder/low-can-binding/utils/timer.cpp @@ -113,6 +113,11 @@ float frequency_clock_t::get_frequency() const return frequency_; } +uint64_t frequency_clock_t::get_last_tick() const +{ + return last_tick_; +} + /// @brief Force the clock to tick, regardless of it its time has actually /// elapsed. void frequency_clock_t::tick(uint64_t timestamp) diff --git a/CAN-binder/low-can-binding/utils/timer.hpp b/CAN-binder/low-can-binding/utils/timer.hpp index 560a8181..a667022a 100644 --- a/CAN-binder/low-can-binding/utils/timer.hpp +++ b/CAN-binder/low-can-binding/utils/timer.hpp @@ -53,5 +53,6 @@ public: time_function_t get_time_function(); bool elapsed(bool stagger); + uint64_t get_last_tick() const; void tick(uint64_t timestamp); };
\ No newline at end of file |