]> git.tdb.fi Git - model-railway-devices.git/blobdiff - common/clock.h
Add a clock facility
[model-railway-devices.git] / common / clock.h
diff --git a/common/clock.h b/common/clock.h
new file mode 100644 (file)
index 0000000..134cdfe
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef CLOCK_H_
+#define CLOCK_H_
+
+#include <stdint.h>
+
+#ifndef CLOCK_RATE
+#define CLOCK_RATE 1000
+#endif
+
+void clock_start();
+void clock_stop();
+uint32_t clock_get();
+
+#endif