diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-17 17:17:24 +0000 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-20 11:14:55 +0000 |
commit | 15250b2e51e8383a0df4b6e5a870c07e914d406d (patch) | |
tree | 6c7d0d8c9b41edfacb9749b7694df7c5f8042f98 /src/timer.hpp | |
parent | f97e5f6d0b15df8fe8c7a4621e40c6a23bbac137 (diff) |
Fix: timer.* issues
Change-Id: I1c3721403198b3c5525a811bd3c7cbf6b8e78e5b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/timer.hpp')
-rw-r--r-- | src/timer.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/timer.hpp b/src/timer.hpp index 76eb51d..798baa2 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -17,17 +17,20 @@ #pragma once -//typedef unsigned long (*TimeFunction)(); +#include <sys/timeb.h> -/* Public: A frequency counting clock. +typedef unsigned long (*TimeFunction)(); + +/** + * @brief: A frequency counting clock. * * frequency - the clock frequency in Hz. * last_time - the last time (in milliseconds since startup) that the clock * ticked. - * time_function - a function returning current time in ms + * time_function - a function returning current time */ typedef struct { float frequency; unsigned long lastTick; TimeFunction timeFunction; -} FrequencyClock; +} FrequencyClock;
\ No newline at end of file |