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

后端 未结 30 2949
南笙
南笙 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 09:57

    I'm using Windows XP and for some reason timeit.exe does not work for me. I found another alternative - PTIME. This works very well.

    http://www.pc-tools.net/win32/ptime/

    Example -

    C:\> ptime
    
    ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
    Copyright(C) 2002, Jem Berkes 
    
    Syntax: ptime command [arguments ...]
    
    ptime will run the specified command and measure the execution time
    (run time) in seconds, accurate to 5 millisecond or better. It is an
    automatic process timer, or program timer.
    
    
    C:\> ptime cd
    
    ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
    Copyright(C) 2002, Jem Berkes 
    
    ===  cd ===
    C:\
    
    Execution time: 0.015 s
    

提交回复
热议问题