home *** CD-ROM | disk | FTP | other *** search
- {
- Program TIMETEST to demonstrate the use of the TIME function
- contained in TIME.INC
-
- Source: "TIME: A Function To Measure Elapsed Time", TUG Lines Volume I, Issue 3
- Author: Herb Holden
- Application: PC-DOS/MS-DOS
- }
-
- program timetest;
-
- var t1,t2,x: real;
- i: integer;
- (*$I time.inc *)
- begin
- t1:=time;
- for i:=1 to 1000 do x:=3.21*6.54;
- t2:=time;
- writeln( 'Time: ', t2-t1:6:2)
- end.