Answers for "java benchmark time"

0

java benchmark time

public class SomeClass{
   public void somePublicMethod()
   {
       long startTime = System.currentTimeMillis();
       someMethodWhichYouWantToProfile();
       long endTime = System.currentTimeMillis();
       System.out.println("Total execution time: " + (endTime-startTime) + "ms"); 
   }
 }
Posted by: Guest on October-01-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language