Today using LWJGL(not sure maybe problem only with him)
I find error
Thread.sleep(10); // sometimes after call sleep
System.currentTimeMillis();// milis returns same as before sleep
//Nano sec return right value
I use this code to synchronize physics tic
long time = System.currentTimeMillis();
Frames_Dif_Milis = time - Frame_End_Milis;
Frame_End_Milis = time;
Thread.sleep(10);
But some times Frames_Dif_Milis == 0; Java 1.7
To fix error I use now nano sec difference