The
currentTimeMillis method returns the current time in terms of milliseconds since midnight, January 1, 1970. The currentTimeMillis method is to time how long various parts of your program take to execute .
Elapsed CODE import java.lang.*; OUTPUT Timing a for loop from 0 to 1000 DESCRIPTION In the above program we have used THINGS TO TRY
|