summaryrefslogtreecommitdiff
path: root/include/posix/driver/uptime.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-11 10:28:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-11 10:28:25 +0100
commit2253c912c86b5196e17657ee067abfc7afa4d652 (patch)
treec10d2722e0c44355bded196209bfba6d5827d06c /include/posix/driver/uptime.h
parent540974f8f109aa8874f032eddf59819c76eb018e (diff)
Add basic uptime getter, improve loop support
Diffstat (limited to 'include/posix/driver/uptime.h')
-rw-r--r--include/posix/driver/uptime.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/posix/driver/uptime.h b/include/posix/driver/uptime.h
new file mode 100644
index 0000000..c92ccf1
--- /dev/null
+++ b/include/posix/driver/uptime.h
@@ -0,0 +1,17 @@
+#ifndef UPTIME_H
+#define UPTIME_H
+
+#include <stdint.h>
+
+class Uptime {
+ private:
+ Uptime(const Uptime &copy);
+
+ public:
+ Uptime () {}
+ uint64_t get();
+};
+
+extern Uptime uptime;
+
+#endif