在Windows中的程序的时间

有没有Windows命令的时间相当于Windows?

实时测量用户和内核用户和内核进程所花费的时间。

$ time for i in `seq 100`; do echo -n HI; done HIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHI<... snip ...> real 0m0.005s user 0m0.000s sys 0m0.004s 

这个想法是脚本/程序/命令是可编程/可自动化的。

Powershell的Measure-Command将会测量一个命令运行的时间。

用法: http : //technet.microsoft.com/en-us/library/dd347702.aspx

在2k3资源工具包中有timeit.exe,这个工具对于我的目的看起来足够好。

(从Googlesearch词中错过了“unix”)