There is a command in Linux that outputs system utilization called time. Is there a Windows equivalent? Or how else can I manually use the task manager commands in a batch file?
There is a command in Linux that outputs system utilization called time. Is there a Windows equivalent? Or how else can I manually use the task manager commands in a batch file?
If your Operating System has powershell (older operating systems might need a download), you can simply use Measure-Command cmdlet.
The Windows Server 2003 Resource kit includes a timeit utility. The resource kit works fine on XP as well, and I've used the individual tools on newer Windows operating systems as well.
I found a tool which -- while not a direct port -- appears to give you the information you desire.
timemem.exe is available from Andy Fingerhut's page of code and the timemem source is hosted on github as part of the clojure-benchmark repo.
Much detail is available in readme-timemem.txt, form where I copied the above example.
(found from this neglected answer over on superuser)