Rize S. answered 03/23/23
Tutor
New to Wyzant
Senior IT Certified Trainer, IT Developer & DBA Administrator
In DOS, you can time a script by using the time command. Here's an example:
- Open Command Prompt.
- Navigate to the directory where your script is located.
- Type time and press Enter. This will display the current time.
- Run your script by typing its name and pressing Enter.
- After the script has finished running, type time again and press Enter. This will display the current time again.
- Subtract the start time from the end time to get the elapsed time.
For example, if the start time is 10:00:00 and the end time is 10:01:30, the elapsed time is 1 minute and 30 seconds.