home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
336.lha
/
ELAPSED.DOC
< prev
next >
Wrap
Text File
|
1990-01-10
|
1KB
|
33 lines
AUTHOR: Ned Kelly
Arlington, Texas
This program allows one to easily compute the elapsed time needed
to execute any command or series of commands.
The calling sequence is:
ELAPSED name <INIT>
where "name" is a string used to uniquely identify this process.
where "INIT" is an optional argument and is used to initially set the
reference time.
For example, consider the following script file:
ELAPSED TEST1 INIT
DIR DF0:
ELAPSED TEST1
CD DF1:
INFO
DIR
ELAPSED TEST1
In this example the first call to ELAPSED will define the starting
time. The second call will display the elapsed time between the
second call and the first call. The third call will display the
elapsed time between the third call and the first call.
The name "TEST1" is used a as suffix for an environmental variable
which is created to store the reference time in. In this case the
environmental variable used has the name "ELAPSED.TEST1". The
environmental variable contians the three integer array returned
from the AmigaDOS DateStamp function.