Well, I didnt do much, just used System.nanoTime () to measure the difference.
so I did:
and repeated 1000 times:
and at the end, the average time is
so I did:
Code:
sum = 0;
Code:
startTime = System.nanoTime(); **operation** endTime = System.nanoTime(); sum += (endTime - startTime)/1e9;
Code:
sum/1000
Comment