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.
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;
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.