Answers for "running time of java program"

C
0

running time of java program

long startTime = System.nanoTime();
.....your program....
long endTime   = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
Posted by: Guest on June-05-2021

Code answers related to "running time of java program"

Code answers related to "C"

Browse Popular Code Answers by Language