Timer: Difference between revisions
Jump to navigation
Jump to search
m
→Windows command (DOS)
No edit summary |
|||
| Line 33: | Line 33: | ||
== Windows command (DOS) == | == Windows command (DOS) == | ||
<pre> | <pre> | ||
REM show the start time | |||
prompt $d $t $_$P$G | prompt $d $t $_$P$G | ||
REM do something ... | |||
REM show the finish time | |||
prompt $d $t $_$P$G | prompt $d $t $_$P$G | ||
</pre> | </pre> | ||
| Line 44: | Line 44: | ||
or ...<ref>[https://stackoverflow.com/questions/673523/how-do-i-measure-execution-time-of-a-command-on-the-windows-command-line batch file - How do I measure execution time of a command on the Windows command line? - Stack Overflow]</ref><ref>[https://stackoverflow.com/questions/166044/sleeping-in-a-batch-file python - Sleeping in a batch file - Stack Overflow]</ref> | or ...<ref>[https://stackoverflow.com/questions/673523/how-do-i-measure-execution-time-of-a-command-on-the-windows-command-line batch file - How do I measure execution time of a command on the Windows command line? - Stack Overflow]</ref><ref>[https://stackoverflow.com/questions/166044/sleeping-in-a-batch-file python - Sleeping in a batch file - Stack Overflow]</ref> | ||
<pre> | <pre> | ||
REM recode the start time | |||
set startTime=%time% | set startTime=%time% | ||
REM do something ... | |||
REM show the start and finish time | |||
echo Start Time: %startTime% | echo Start Time: %startTime% | ||
echo Finish Time: %time% | echo Finish Time: %time% | ||