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.

link|improve this question

77% accept rate
feedback

3 Answers

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

link|improve this answer
feedback
up vote 1 down vote accepted

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

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

link|improve this answer
feedback

Have you looked at PowerShell?

link|improve this answer
Care to elaborate? The answer to your question is "Yes", but that won't tell you much either, will it? :-) – Vinko Vrsalovic Jul 27 '09 at 14:04
Vinko - I think Even has found the command / technique (+1) I was searching for. It was on the end of my tongue... – Guy Jul 28 '09 at 8:15
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.