summaryrefslogtreecommitdiff
path: root/src/c/shell/uptime.c
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-06-01 17:02:08 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-06-01 17:02:08 +0200
commitdd038cfb10cae6dba5afabc786a129224da5ef8c (patch)
treee9d94f187db87f880a52be2c4e7c8e276477c9ab /src/c/shell/uptime.c
parent602037ec658da6ab2f04f1c806bfccdcd8125f27 (diff)
simple snake game
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);
+}