java benchmark time

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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