diff options
author | Christian Cunningham <cc@localhost> | 2022-02-04 16:33:19 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-04 16:33:19 -0700 |
commit | 6e7f93d6a09865937dde1124a6c3f36eebcd9d82 (patch) | |
tree | 085d3b687b4c6175592a4d3cf9b0afdf75503837 /src/tests | |
parent | aaf7667a36a0268de87f1913fd9a87e1cbf7da92 (diff) |
Move tests to own file
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test.c | 17 |
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); +} |