summaryrefslogtreecommitdiffstats
path: root/src/utils/timer.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-09 16:01:08 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commit78daa605c5abd64054dad9f5fcfee638f8c515e0 (patch)
tree8b2eb222995f7197066b1a25a6038885d525198a /src/utils/timer.cpp
parentbd50c86cce2db519c6d981bc0acffc79828a3bcf (diff)
Change FrequencyClock struct to class and rename it.
Change-Id: I1076ad90e14815f3d0ab71ca9fa359d1d3c1748d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/utils/timer.cpp')
-rw-r--r--src/utils/timer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp
index 8dec7066..433fcb26 100644
--- a/src/utils/timer.cpp
+++ b/src/utils/timer.cpp
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-#include "utils/timer.hpp"
+#include "timer.hpp"
long long int systemTimeMs()
{
@@ -28,4 +28,9 @@ long long int systemTimeMs()
t_msec.millitm;
}
return timestamp_msec;
-} \ No newline at end of file
+}
+
+
+frequency_clock_t::frequency_clock_t()
+ : frequency_{0.0}, last_tick_{0}, time_function_{nullptr}
+{} \ No newline at end of file