home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / STOP20.ZIP / STOPWTCH.DOC < prev   
Encoding:
Text File  |  1990-06-18  |  4.8 KB  |  112 lines

  1.                StopWatch - Program Execution Timer
  2.                   Version 2.0.0:  June 18, 1990
  3.  
  4. Author: Don A Williams
  5.         CompuServ - 75410,543
  6.         GEnie     - DON-WILL
  7.  
  8.  
  9.         *********************  NOTICE  ************************
  10.         *  Contrary to the current trend in MS-DOS  software  *
  11.         *  this  program,  for whatever it is worth,  is NOT  *
  12.         *  copyrighted (with the exception  of  the  runtime  *
  13.         *  library  from  the C compiler)!  The program,  in  *
  14.         *  whole or in part,  may  be  used  freely  in  any  *
  15.         *  fashion or environment desired.  If you find this  *
  16.         *  program  to  be  useful  to you,  do NOT send any  *
  17.         *  contribution to the author;  in the words of Rick  *
  18.         *  Conn,   'Enjoy!'   However,   if   you  make  any  *
  19.         *  improvements,  I would enjoy receiving a copy  of  *
  20.         *  the  modified source.  I can be reached,  usually  *
  21.         *  within 24  hours,  by  messages  on  any  of  the  *
  22.         *  following Phoenix, AZ systems (the Phoenix systems *
  23.         *  can all be reached through StarLink node #9532):   *
  24.         *                                                     *
  25.         *     The Tool Shop BBS       [PCBOARD] [PC-Pursuit]  *
  26.         *         (602) 279-2673   1200/2400/9600 bps         *
  27.         *     Technoids Anonymous     [PCBOARD]               *
  28.         *         (602) 899-4876   300/1200/2400 bps          *
  29.         *         (602) 899-5233                              *
  30.         *         (602) 786-9131                              *
  31.         *     Inn On The Park         [PCBOARD]               *
  32.         *         (602) 957-0631   1200/2400/9600 bps         *
  33.         *     Pascalaholics Anonymous [WBBS]                  *
  34.         *         (602) 484-9356   1200/2400 bps              *
  35.         *                                                     *
  36.         *  or:                                                *
  37.         *     Blue Ridge Express     [RBBS] Richmond, VA      *
  38.         *         (804) 790-1675   2400 bps [StarLink #413]   *
  39.         *                                                     *
  40.         *     The Lunacy BBS         [PCBOARD] Van Nuys, CA   *
  41.         *         (805) 251-7052   2400/9600 [StarLink 6295]  *
  42.         *         (805) 251-8637   2400/9600 [StarLink 6295]  *
  43.         *                                                     *
  44.         *  or:                                                *
  45.         *     GEnie, mail address: DON-WILL                   *
  46.         *     CompuServ:           75410,543                  *
  47.         *                                                     *
  48.         *  Every  effort  has  been  made to avoid error and  *
  49.         *  moderately extensive testing has  been  performed  *
  50.         *  on  this  program,  however,  the author does not  *
  51.         *  warrant it to be fit for any  purpose  or  to  be  *
  52.         *  free  from  error and disclaims any liability for  *
  53.         *  actual or any other damage arising from  the  use  *
  54.         *  of this program.                                   *
  55.         *******************************************************
  56.  
  57.  
  58.     StopWatch is a program that can be used to time the execution 
  59. of other programs.  It uses the BIOS timer which has a resolution 
  60. of ~55 milliseconds  and  should  be  accurate  to  at  least  .1 
  61. seconds.  
  62.  
  63.  
  64. USAGE:
  65.  
  66.     There are two formats for the StopWatch command:
  67.  
  68.         STOP <any command WITHOUT I/O redirection>
  69.            and
  70.         STOP <"any command with I/O redirection">
  71.  
  72.     The  angle  brackets  ('<' and '>') are not actually entered, 
  73. however, the quotes in form 2 must be entered.  
  74.  
  75.  
  76. EXAMPLES:
  77.  
  78.     1)  STOP DIR *.*
  79.  
  80.         This StopWatch command would time the  execution  of  the 
  81.         PC/MS-DOS DIR command.  
  82.  
  83.     2)  STOP "TRIM 0 <STOPWTCH.C >STOPWTCH.C"
  84.  
  85.         This  StopWatch  command  would time the execution of the 
  86.         TRIM filter which uses I/O redirection.  
  87.  
  88.     3)  STOP "TRIM 0 <STOPWTCH.C >STOPWTCH.C" >TIME
  89.  
  90.         This StopWatch command is the same as that in  2)  except 
  91.         that the StopWatch output is redirected to the file TIME.  
  92.  
  93.  
  94. OUTPUT:
  95.  
  96.     The output of StopWatch shows the date of execution (from the 
  97. system date),  the command that was executed,  the start time for 
  98. execution of the command (from the system time of day),  the  end 
  99. time of the execution, and the elapsed time (from the BIOS time).  
  100. The  following  is  an  example  of  the  output of the StopWatch 
  101. command for an execution of DIR: 
  102.  
  103.  
  104.     StopWatch - Version 2.0.0: June 18, 1990
  105.         Turbo C++ 1.0  Compiler Version
  106.         Date:         06/18/1990
  107.         Command:      dir
  108.         Start time:    4:50:36
  109.         Stop time:     4:50:36
  110.         Elapsed time: 00.50 seconds
  111.  
  112.