I have a batch file where I output a date/time stamp in this format…
<code>YYYYMMDD.HHMMSS.MS
</code>
<code>YYYYMMDD.HHMMSS.MS
</code>
YYYYMMDD.HHMMSS.MS
If the batch file outputs this at the beginning, and then at the end, is there any way to perform a mathematical function between the start and end date/time stamps where I could output the difference in processing time (days, hours, minutes, seconds, and miliseconds)? For example, output would look like this…
<code>20240910.120000.0
20240910.133000.0
Process took 1 hour, thirty minutes to complete.
</code>
<code>20240910.120000.0
20240910.133000.0
Process took 1 hour, thirty minutes to complete.
</code>
20240910.120000.0
20240910.133000.0
Process took 1 hour, thirty minutes to complete.
I know we can perform some basic math with numbers in batch files, but wondering if this is even possible.
Thanks in advance.
3