Re: Test the Speed of 2 programs



IveCal wrote:
Hello... I have 2 progs, A and B. I want to know which of the 2 runs
faster. I just cant use Date to display the when the progs start and
end because I want to see the difference in milliseconds/ ...

java.util.Date.Date() (JavaDocs for no-args constructor)
"Allocates a Date object and initializes it so that it represents
the time at which it was allocated, measured to the
*nearest* *millisecond*...."

( though if you do not want to deal with objects, see..
java.lang.System.currentTimeMillis() )

Andrew T.

.