X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2Ftest2.c;h=9118279fee1e137a815574ec42e294708ce2ddb4;hb=5ad8cc4e485b54223dac7f5416ce8463e4dc09a4;hp=a366998084c9cc7553215a86699d1c3ca6762e85;hpb=952bc98c5a1d6b2ea62aca99e4cf066daa8459f9;p=16.git diff --git a/16/modex16/test2.c b/16/modex16/test2.c old mode 100644 new mode 100755 index a3669980..9118279f --- a/16/modex16/test2.c +++ b/16/modex16/test2.c @@ -5,18 +5,15 @@ word far* clock= (word far*) 0x046C; /* 18.2hz clock */ void main() { int i; word start; - float t1, t2; page_t page; page=modexDefaultPage(); - setvideo(1); + modexEnter(); start = *clock; for(i=0; i<500; i++) { modexShowPage(&page); } - t1 = (*clock - start)/18.2; - setvideo(0); + modexLeave(); - printf("Time: %f\n", t1); }