Can somebody direct me to right path for
Why in the following code, there is a gap of a second between start and end msg?
System.out.println("Start:" + LocalTime.now());
for (int i = 0; i > -1; i++) { /*Infinite loop*/ }
System.out.println("End :" + LocalTime.now());
I tried to find out if DCE takes time for this type of code but couldn't find much.