home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
dos
/
prg
/
pas
/
swag
/
timing.swg
/
0002_TCTIMER.PAS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
408b
|
31 lines
Unit tctimer;
Interface
Uses tptimer;
Var
start : LongInt;
Procedure StartTimer;
Procedure WriteElapsedTime;
Implementation
Procedure StartTimer;
begin
start := ReadTimer;
end;
Procedure WriteElapsedTime;
Var stop : LongInt;
begin
stop := ReadTimer;
Writeln('Elapsed time = ',(ElapsedTime(start,stop) / 1000):10:6,' seconds');
end;
end.