hello, since i read in the other thread that System.currentMillis is better than nanoTime i tried to change my Timing class.
in order to get the time that has passed since the last frame in my gameloop, i use this code.
[
lastTime = curTime;
curTime = System.currentTimeMillis();
frameTime = (curTime-lastTime) / 1000.0;
System.out.println(frameTime);
(all variables are doubles, not longs)
unfortunately this seems to be very inaccurate. the results are like this.
0.0
0.0
0.0
0.0
0.0
0.015
0.0
0.0
0.0
0.016
where exactly is my problem? thanks!