#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