home *** CD-ROM | disk | FTP | other *** search
- Program Timer;
-
- Uses
- Crt,
- Int1C;
-
- Var
- w : LongInt;
- loopct : LongInt;
- result1,
- result2,
- result3,
- result4 : LongInt;
-
- Begin
- Write ( 'Loop how many times? ' );
- ReadLn ( loopct );
-
- (******************************************************)
- (***** Write String/Char directly to video memory *****)
- (******************************************************)
-
- DirectVideo := TRUE;
- timerct := 0;
- For w := 1 To loopct Do
- Write ('12345678901234567890123456789012345678901234567890123456789012345678901234567890');
- result1 := timerct;
-
- timerct := 0;
- For w := 1 To ( loopct * 80 ) Do
- Write ( '1');
- result2 := timerct;
-
- (******************************************************)
- (********** Write String/Char via BIOS calls **********)
- (******************************************************)
-
- DirectVideo := FALSE;
- timerct := 0;
- For w := 1 To loopct Do
- Write ('12345678901234567890123456789012345678901234567890123456789012345678901234567890');
- result3 := timerct;
-
- timerct := 0;
- For w := 1 To ( loopct * 80 ) Do
- Write ( '1');
- result4 := timerct;
-
- WriteLn ( 'Direct Video : String = ', result1 : 5, ' Char = ', result2 : 5 );
- WriteLn ( 'Bios Writes : String = ', result3 : 5, ' Char = ', result4 : 5 );
-
- ReadLn;
- End.