Is there a clean windows port / version of the usr/bin/time command in Linux (program to time the execution of a process)?
|
feedback
|
|
Use | |||||
|
feedback
|
|
If you want | |||||||||
feedback
|
|
You could always install Cygwin which will give you the UNIX time command. It is pretty useful to have Cygwin installed anyway. By you asking for a clean port or version, I don't think Cygwin would be acceptable. The only thing I have found is this for custom code to compile on Windows. As I didn't find any links where this has been set up as the time command, I don't know that you could get this to work unless you wanted to program it yourself. | |||
|
feedback
|
|
On my Mac, On a Windows computer, you can use the following to return the uptime: The 'Statistics Since' will give you the time the computer was last powered up. There's also a server tool - uptime.exe There's more information at the Microsoft Support Site. Of course, if you're not looking to find the uptime of a computer, I'm way off the mark. If you're not looking for uptime, what are you looking to achieve? Edit: If you're looking for CPU time as suggested in a comment, you can use the | |||||
feedback
|
|
I have created a simple Windows program called timemem.exe that behaves similarly to /usr/bin/time on Linux/Mac OS X, and will show similar statistics, such as elapsed time, user and kernel CPU time, and maximum working set size in memory used by another Win32 process. See: | |||
|
feedback
|

/usr/bin/timeare you looking for on Windows, specifically? – EvilChookie Aug 28 '09 at 0:49timeactually does on Linux. Someone may not use Linux, but may know a Windows Alternative to what you're looking for (which is the ultimate goal of your question) - it would be helpful for those people to state what you're looking to achieve. – EvilChookie Aug 28 '09 at 1:40timethis.exewhich does what you want and is available as an approx 116K download. – Sinan Ünür Aug 28 '09 at 3:21