hi all;
How compute runtime of a spicifique programm?
if i run same programm several time, in same enviroment, is the execution time will be frozen?

i need some ideas,suggestions, explanations.

Thanks.

You should probably try System.nanoTime()

long startTime = System.nanoTime();
methodToTime();
long endTime = System.nanoTime();

long duration = endTime - startTime;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.