home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 336.lha / ELAPSED.DOC < prev    next >
Text File  |  1990-01-10  |  1KB  |  33 lines

  1.  
  2.      AUTHOR: Ned Kelly
  3.              Arlington, Texas
  4.  
  5.      This program allows one to easily compute the elapsed time needed
  6.      to execute any command or series of commands.
  7.  
  8.      The calling sequence is:
  9.         ELAPSED name <INIT>
  10.      where "name" is a string used to uniquely identify this process.
  11.      where "INIT" is an optional argument and is used to initially set the
  12.      reference time.
  13.  
  14.      For example, consider the following script file:
  15.         ELAPSED TEST1 INIT
  16.         DIR DF0:
  17.         ELAPSED TEST1
  18.         CD DF1:
  19.         INFO
  20.         DIR
  21.         ELAPSED TEST1
  22.      In this example the first call to ELAPSED will define the starting
  23.      time.  The second call will display the elapsed time between the 
  24.      second call and the first call.  The third call will display the
  25.      elapsed time between the third call and the first call.
  26.      
  27.      The name "TEST1" is used a as suffix for an environmental variable
  28.      which is created to store the reference time in.  In this case the
  29.      environmental variable used has the name "ELAPSED.TEST1".  The
  30.      environmental variable contians the three integer array returned
  31.      from the AmigaDOS DateStamp function.
  32.  
  33.