aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test.c')
-rw-r--r--src/tests/test.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
new file mode 100644
index 0000000..247465e
--- /dev/null
+++ b/src/tests/test.c
@@ -0,0 +1,17 @@
+#include <cpu.h>
+#include <drivers/uart.h>
+
+void utime(void);
+
+void test_entry(void)
+{
+}
+
+void utime(void)
+{
+ unsigned long long ti, tf, dt;
+ sys0_64(SYS_TIME, &ti);
+ sys0_64(SYS_TIME, &tf);
+ dt = tf - ti;
+ PRINT64(dt);
+}