Core
Imagine that you are running a process that takes a long time to perform (eg. build, code generation, maintenance batch, file transfer, etc.) and that you want to see how long it takes. You can use the idea from the sample below. I used a simple "sleep" command in place of a real process, but I believe that you will get the idea.
Usage: In order to use the "timediff" command add the two files
timedff-calc.bat and timediff-sub.bat
to a directory that is in your PATH environment variable (eg. "C:\bin").
to a directory that is in your PATH environment variable (eg. "C:\bin").
Helpers
Consider also adding the following batch script to your toolbox:
Testing
Last but not least, please see the timediff-test.bat file for sample invokations and formats supported:
No comments:
Post a Comment