diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-13 17:46:50 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:15:55 +0100 |
commit | a0e0cb5ac95e779cd2746d8c1f0740e141bbcc41 (patch) | |
tree | 8ee9cb0cdd5344321da8bc6b948243ae49a2e33b /src/utils | |
parent | 7abe7ef5336d88736b20b015ae219731d5f42365 (diff) |
Adding/Fix classes constructors to make them correspond
to the ones generated.
Change-Id: I6b0b778f59ac52fe66e36a327f60ae58550ac271
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/timer.cpp | 2 | ||||
-rw-r--r-- | src/utils/timer.hpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp index 1461ac4b..e708a7ed 100644 --- a/src/utils/timer.cpp +++ b/src/utils/timer.cpp @@ -35,7 +35,7 @@ long long int system_time_ms() } frequency_clock_t::frequency_clock_t() - : frequency_{0.0}, last_tick_{0}, time_function_{nullptr} + : frequency_{10.0}, last_tick_{0}, time_function_{nullptr} {} diff --git a/src/utils/timer.hpp b/src/utils/timer.hpp index ce6336eb..b58397ba 100644 --- a/src/utils/timer.hpp +++ b/src/utils/timer.hpp @@ -51,6 +51,7 @@ private: public: frequency_clock_t(); frequency_clock_t(float frequency); + frequency_clock_t(float frequency, unsigned long last_tick, time_function_t time_function); static float frequency_to_period(float frequency); bool started(); |