home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
t_power
/
ttdemo.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-08-15
|
496b
|
21 lines
program TpTimerDemo;
{-Simple demonstration program for TPTIMER unit}
uses
TpTimer, Crt;
var
DelayCount : Word;
Start, Stop : LongInt;
begin
repeat
WriteLn;
Write('Enter time to delay (in ms), or 0 to quit: ');
ReadLn(DelayCount);
if DelayCount > 0 then begin
Start := ReadTimer;
Delay(DelayCount);
Stop := ReadTimer;
WriteLn('Elapsed time (in ms): ', ElapsedTimeString(Start, Stop));
end;
until (DelayCount = 0);
end.