3

Is there a Windows equivalent of the time Unix command?

time measures the time spent by a process in both user and kernel lands.

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

The idea is for the script/program/command to be programmable/automatable.

Vinko Vrsalovic
  • 1,523
  • 2
  • 15
  • 20

2 Answers2

2

Powershell's Measure-Command will measure the amount of time a command takes to run.

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

Even Mien
  • 657
  • 2
  • 12
  • 19
1

There is timeit.exe in the 2k3 Resource Kit which looks good enough for my purposes.

(was missing "unix" from the Google search term)

Vinko Vrsalovic
  • 1,523
  • 2
  • 15
  • 20