Iv done so and iv got this:
TB: 171677500409656. TA: 171677500411014. Time Diffrence: 1358
TB: 171677504907948. TA: 171677504908854. Time Diffrence: 906
TB: 171677510269938. TA: 171677510270844. Time Diffrence: 906
TB = Time Before
TA = Time After
Time Difference = (TA - TB)
The time is determined with System.nanoTime();
NOTE: The time diffrence changes alot between 300 - 1900
What happens is the loop get's called every 5ms, im using new Timer(5, this) to call the actionPreformed method every 5ms..
So the time diffrence does change, how can i make it constant?
Also: Im using a laptop when i remove my power it slow's down the computer a little. if this happens the whole game get's slower too and i dono why, any idea's?