Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify processing event
[apps/agl-service-can-low-level.git]
/
CAN-binder
/
low-can-binding
/
utils
/
timer.hpp
diff --git
a/CAN-binder/low-can-binding/utils/timer.hpp
b/CAN-binder/low-can-binding/utils/timer.hpp
index
432d513
..
a667022
100644
(file)
--- a/
CAN-binder/low-can-binding/utils/timer.hpp
+++ b/
CAN-binder/low-can-binding/utils/timer.hpp
@@
-42,7
+42,7
@@
private:
public:
frequency_clock_t();
public:
frequency_clock_t();
- frequency_clock_t(float frequency);
+
explicit
frequency_clock_t(float frequency);
frequency_clock_t(float frequency, uint64_t last_tick, time_function_t time_function);
float get_frequency() const;
frequency_clock_t(float frequency, uint64_t last_tick, time_function_t time_function);
float get_frequency() const;
@@
-53,5
+53,6
@@
public:
time_function_t get_time_function();
bool elapsed(bool stagger);
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
void tick(uint64_t timestamp);
};
\ No newline at end of file