aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-12 14:50:20 -0800
committerChristian Cunningham <cc@localhost>2022-03-12 14:50:20 -0800
commitebefd4f80c4f50a4d90a002c5fbe9189c47647ae (patch)
treea466d175df7ab66c8259e9bf7f1acabab61a2c28 /src/tests
parent468167fce9d64cb8f08832dd7586dd55f9200fb8 (diff)
Better Testing
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 7f18627..503e689 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -26,11 +26,13 @@ void test_entry(void)
DRAW64(17, y+5, dt%64);
// atest
- add_thread(atest, 0, 0);
- sys0_64(SYS_TIME, &ti);
- sys0(SYS_YIELD);
- sys0_64(SYS_TIME, &tf);
- dt = tf - ti;
+ //add_thread(atest, 0, 0);
+ for(int i = 0; i < 64; i++) {
+ sys0_64(SYS_TIME, &ti);
+ sys0(SYS_YIELD);
+ sys0_64(SYS_TIME, &tf);
+ dt += tf - ti;
+ }
DRAW64(34, y+5, dt/64);
DRAW64(34+17, y+5, dt%64);
add_thread(btest, 0, 4);