java benchmark time

Solutions on MaxInterview for java benchmark time by the best coders in the world

showing results for - "java benchmark time"
Lalie
13 Jan 2018
1public class SomeClass{
2   public void somePublicMethod()
3   {
4       long startTime = System.currentTimeMillis();
5       someMethodWhichYouWantToProfile();
6       long endTime = System.currentTimeMillis();
7       System.out.println("Total execution time: " + (endTime-startTime) + "ms"); 
8   }
9 }
10
similar questions
queries leading to this page
java benchmark time