diff options
| author | Christian Cunningham <cc@localhost> | 2022-03-15 16:08:25 -0700 | 
|---|---|---|
| committer | Christian Cunningham <cc@localhost> | 2022-03-15 16:08:25 -0700 | 
| commit | 3ddd2534e3c09979135f42abd06d2b27ed3c5d16 (patch) | |
| tree | 0b2ba1378103b2032fdd4a43d23c2088c73af10a /src/tests | |
| parent | 60cd2c9cf98171a0ddd49cabc13c2d7febbf2eba (diff) | |
Verbose Testing
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/test.c | 18 | 
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);  } | 
