summaryrefslogtreecommitdiff
path: root/src/c/shell/uptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/shell/uptime.c')
-rw-r--r--src/c/shell/uptime.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/c/shell/uptime.c b/src/c/shell/uptime.c
new file mode 100644
index 0000000..fc78579
--- /dev/null
+++ b/src/c/shell/uptime.c
@@ -0,0 +1,10 @@
+#include<source/shell/uptime.h>
+#include<source/stdio.h>
+#include<types.h>
+
+extern uint32_t time;
+
+void uptime(void)
+{
+ printf("System uptime is: %d seconds\n",time);
+}