Print time in a batch file (milliseconds)

后端 未结 7 891
野性不改
野性不改 2020-12-13 23:56

How do I print the time (in ms) in a Windows batch file?

I want to measure the time that passes between lines in my batch file, but Windows\'s \"time /T\" does not p

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 00:24

    To time task in CMD is as simple as

    echo %TIME% && your_command && cmd /v:on /c echo !TIME!
    

提交回复
热议问题