This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
How to write java program say 'A', that can measure execution time of any other java program say 'B' or 'C'.
'A' can be ever-running monitor program, that's waiting for any other java program to execute and calculate its execution time.
I am trying to fetch this information from tasklist command in windows.
But the tasklist.exe program only displays tasks that are running at the moment you call that program, isn't that right? In other words it won't tell you when a particular task starts, nor will it tell you when it finishes. And since those are the two pieces of information you want, and tasklist.exe doesn't provide either of them, I really don't think it's the best choice. Wouldn't you agree?
Joined: Jul 13, 2009
Agree and exactly, and thats where I am stuck.
What other alternatives I have ?
I need to compute much more information like memory space etc, starting with timestamp. So I thought tasklist.exe can be sufficient, but surely, it does not seem so.