home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RTIMER V1.01 Copyright (c) 1992 Copy Con Incorporated Page 1
-
-
- OVERVIEW
- --------
- RTIMER returns the errorlevel and elapsed time of any DOS program,
- batch file, or internal command, with up to 1/100 second accuracy.
- RTIMER can search the DOS path for files, can run COM and EXE files
- without reloading the command processor, and can use any command
- processor for batch files and internal commands.
-
-
- DISCLAIMER
- ----------
- RTIMER is distributed on an "AS IS" basis without warranty, expressed
- or implied. Considerable testing effort has been expended, but the
- user is advised to check the program's suitability before relying on
- it. The user assumes full risk as to the results of using this
- program. Any liability of the author will be limited exclusively to
- product replacement. In no event shall the author be liable for any
- incidental or consequential damages arising from the use, or inability
- to use this program.
-
-
- OPERATION
- ---------
- RTIMER is activated from the command line, using the format
-
- RTIMER [path]command [command options]
-
- The command can be any executable COM or EXE file, BAT batch file, or
- internal DOS command. File extensions are usually not necessary; if no
- extension is given, RTIMER will search the current directory and the
- DOS path for a COM file, then an EXE file, and then a BAT file.
-
- There is a ten option limit for batch files and internal commands, and
- no limit for COM and EXE files (aside from the DOS limitation of a 128
- character command line).
-
- If a path is not specified with the command, RTIMER will first check
- the current directory for the file, and then search the DOS path. The
- search for the command will be included in the elapsed time, so for
- more accurate timing, the full path and filename should be specified.
-
- RTIMER will not reload the command processor to execute COM and EXE
- files. For batch files and internal commands, RTIMER will check the
- DOS environment for COMSPEC=, and use the processor that follows. If
- COMSPEC= is not found, RTIMER will search the path for COMMAND.COM.
- Again, the search for the processor will be included in the elapsed
- time, so for more accurate timing, use the SET COMSPEC command first,
- and specify the full pathname (ex. SET COMSPEC=C:\DOS\COMMAND.COM).
-
- The elapsed time will be displayed onscreen, followed by the error-
- level. Note that on some systems, the resolution of the system clock
- is about 5/100 second, and a few systems can only return full seconds.
- The returned errorlevel will be displayed onscreen, and will also be
- returned to DOS.
-
-
-
- RTIMER V1.01 Copyright (c) 1992 Copy Con Incorporated Page 2
-
-
- OPERATION (continued)
- ---------------------
- The other executable, STIMER, works exactly like RTIMER, except that
- it uses the SPAWNO routines by Ralf Brown to minimize memory use while
- running other programs. Where RTIMER uses approximately 16 kilobytes
- of memory, STIMER uses less than 1/2 kilobyte. STIMER will first try
- to swap itself to EMS or XMS memory, and will then attempt to swap to
- the current disk directory. The swap directory can can be changed by
- setting the environment variable SWAPDIR, TEMP, or TMP to the desired
- directory. Unavoidably, the swap time is included in the elapsed time,
- so for more accurate timing, swap to EMS/XMS memory, or a RAM disk.
-
-
- ERROR MESSAGES
- --------------
- Path or file name not found
- Either the specified file was not in the path, or the command
- processor could not be found to launch the batch/internal command.
- Make sure the PATH and/or COMSPEC settings are valid.
-
- Out of conventional or stack memory
- RTIMER does not have enough conventional or stack memory to process
- the command. Make sure the command has enough conventional memory to
- run without RTIMER. If it does, try STIMER. If STIMER gives the same
- message, please contact us, with detailed info on your DOS version,
- how the memory is configured, and the exact command line.
-
-
- EXAMPLES
- --------
- RTIMER xcopy a: b:
- will show how long it takes XCOPY to copy files from one drive to
- another. This time can be compared with the internal COPY command
- to see which one is faster, compared to itself after disk caching
- software has been installed, etc.
-
- RTIMER pause
- will call the internal DOS pause command, which waits for a
- keypress, and will show the elapsed time from program start to
- finish. Expensive stopwatch.
-
- RTIMER c:\bbs\bbs.bat
- will run a batch file that starts a bulletin board system, and upon
- exit, will show how long it has been running, and if it ran ok. The
- elapsed time will be as accurate as the system clock.
-
-
-
- RTIMER V1.01 Copyright (c) 1992 Copy Con Incorporated Page 3
-
-
- CORRESPONDENCE
- --------------
- If you have questions, comments, suggestions, bug reports, etc.,
- feel free to contact us by one of the following methods:
-
- 1: By modem at The Programmer's Corner (301-596-1180 or 410-995-3744).
- Send a message to user number 3000, and check back in a couple of
- work days for a reply.
-
- 2: By U.S. Mail:
-
- Copy Con Incorporated
- PO Box 23255
- Baltimore MD 21203-5255
-
- If you would like a reply, please include a self-addressed, stamped
- envelope.
-
- We look forward to hearing from you.
-