From 3ddd2534e3c09979135f42abd06d2b27ed3c5d16 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 15 Mar 2022 16:08:25 -0700 Subject: Verbose Testing --- src/tests/test.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/tests') 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); } -- cgit v1.2.1