How can we measure the runtime of a program under the command line (or CMD) in Windows?
- Use the ptime tool
The Ptime is a small, free tool that was released in 2002 and works well in all versions of Windows.
Using the ptime, you can measure the amount of time to complete a command under the command. It is easy to execute by adding a command after the filename.
The following command in the following example measures the time value of the list of all files and folders from C: \\ drive.
ptime.exe dir C:\\ s
The Ptime knows better the runtime of the measurement below 5 milliseconds.
This software is provided & quot;as is & quot; and without any warranties as to
performance, merchantability, fitness for a particular purpose, or
any other warranties whether expressed or implied. The entire risk
as to the results and performance of the software is assumed by you.
The author shall not have any liability to you or any other person
or entity for any damages whatsoever, including, but not limited to,
loss of revenue or profit, lost or damaged data or other. The author
is also not responsible for claims by a third party.