diff options
Diffstat (limited to 'include/timer.h')
-rw-r--r-- | include/timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h index ddeb79a318..2c439e959e 100644 --- a/include/timer.h +++ b/include/timer.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_TIMER_H #define __CROS_EC_TIMER_H +#include <sys/types.h> + #include "common.h" #include "task_id.h" @@ -146,4 +148,11 @@ static inline unsigned time_since32(timestamp_t start) return get_time().le.lo - start.le.lo; } +/** + * Returns a free running high resolution (ten us or better) clock. + * + * Used by third party libraries requiring MSDN services. + */ +clock_t clock(void); + #endif /* __CROS_EC_TIMER_H */ |