Fix: force to pass a ref at threads launch
[apps/agl-service-can-low-level.git] / src / timer.hpp
index 76eb51d..798baa2 100644 (file)
 
 #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