Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
In class mutex and condition variable except for subscribed_signals map
[apps/low-level-can-service.git]
/
src
/
timer.hpp
diff --git
a/src/timer.hpp
b/src/timer.hpp
index
76eb51d
..
7d0e466
100644
(file)
--- a/
src/timer.hpp
+++ b/
src/timer.hpp
@@
-17,17
+17,29
@@
#pragma once
#pragma once
-//typedef unsigned long (*TimeFunction)();
+#include <sys/timeb.h>
-/* Public: A frequency counting clock.
+/*
+ * @brief return epoch in milliseconds
+ *
+ * @return long long int epoch in milliseconds
+ */
+typedef long long int (*TimeFunction)();
+
+/**
+ * @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.
* ticked.
- * time_function - a function returning current time in ms
+ * @var FrequencyClock::time_function
+ * a function returning current time
*/
typedef struct {
float frequency;
unsigned long lastTick;
TimeFunction timeFunction;
*/
typedef struct {
float frequency;
unsigned long lastTick;
TimeFunction timeFunction;
-} FrequencyClock;
+} FrequencyClock;
\ No newline at end of file