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

后端 未结 30 2946
南笙
南笙 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:02

    Since others are recommending installing things like freeware and PowerShell, you could also install Cygwin, which would give you access to many basic Unix commands like time:

    abe@abe-PC:~$ time sleep 5
    
    real    0m5.012s
    user    0m0.000s
    sys 0m0.000s
    

    Not sure how much overhead Cygwin adds.

提交回复
热议问题