![]() ![]() If you put timecmd.bat in a directory in your path, you can call it from anywhere like this: timecmd Set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%Įcho command took %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total) If %hours% lss 0 set /a hours = 24%hours% If %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins% If %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs% If %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms% Try copying the following script into a new batch file (e.g. To look like a huge DOS nerd (who doesn't).To not have to download and install a resource pack.To measure execution time down to the hundredth of a second in (hh:mm:ss.ff format). ![]()
0 Comments
Leave a Reply. |