Raw import openXC function to detect obd2 response.
[apps/agl-service-can-low-level.git] / src / timer.hpp
index 798baa2..7d0e466 100644 (file)
 
 #include <sys/timeb.h>
 
-typedef unsigned long (*TimeFunction)();
+/*
+ * @brief return epoch in milliseconds
+ *
+ * @return long long int epoch in milliseconds
+ */
+typedef long long int (*TimeFunction)();
 
 /**
- * @brief: A frequency counting clock.
+ * @struct FrequencyClock 
+ * @brief A frequency counting clock.
  *
- * frequency - the clock frequency in Hz.
- * last_time - the last time (in milliseconds since startup) that the clock
+ * @var FrequencyClock::frequency
+ *  the clock frequency in Hz.
+ * @var FrequencyClock::last_time
+ *  the last time (in milliseconds since startup) that the clock
  *     ticked.
- * time_function - a function returning current time
+ * @var FrequencyClock::time_function
+ *  a function returning current time
  */
 typedef struct {
                float frequency;