How do I measure execution time of a command on the Windows command line?

后端 未结 30 3272
南笙
南笙 2020-11-22 09:44

Is there a built-in way to measure execution time of a command on the Windows command line?

30条回答
  •  醉梦人生
    2020-11-22 10:24

    In case anyone else has come here looking for an answer to this question, there's a Windows API function called GetProcessTimes(). It doesn't look like too much work to write a little C program that would start the command, make this call, and return the process times.

提交回复
热议问题