aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 503e689..4402ed3 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -15,15 +15,23 @@ static int y = 13;
void test_entry(void)
{
x = 0;
+ unsigned int z = 1;
draw_string(0, y+4, "Starting tests");
unsigned long long ti, tf, dt=0;
for(int i = 0; i < 64; i++) {
sys0_64(SYS_TIME, &ti);
sys0_64(SYS_TIME, &tf);
dt += tf - ti;
+ if (z % 2) {
+ DRAW64(0+17, y+((z+1)/2)+5, (tf-ti));
+ } else {
+ DRAW64(0, y+(z/2)+5, (tf-ti));
+ }
+ z++;
}
DRAW64(0, y+5, dt/64);
DRAW64(17, y+5, dt%64);
+ z = 1;
// atest
//add_thread(atest, 0, 0);
@@ -32,9 +40,15 @@ void test_entry(void)
sys0(SYS_YIELD);
sys0_64(SYS_TIME, &tf);
dt += tf - ti;
+ if (z % 2) {
+ DRAW64(35+17, y+((z+1)/2)+5, (tf-ti));
+ } else {
+ DRAW64(35, y+(z/2)+5, (tf-ti));
+ }
+ z++;
}
- DRAW64(34, y+5, dt/64);
- DRAW64(34+17, y+5, dt%64);
+ DRAW64(35, y+5, dt/64);
+ DRAW64(35+17, y+5, dt%64);
add_thread(btest, 0, 4);
}