Problem with System.nanoTime()
<p>I´m working on a 2d java game but I´m stuck on timer problems. Here is my game loop:</p>

<pre><code>void gameLoop(isRunning){
....

doStuff();

....
}
</code></pre>

<p>I have a fps measuring code like this inside the loop:</p>

<pre><code>long thisLoop = System.currentTimeMillis();
delta = thisLoop - lastLoopTime;
lastLoopTime = thisLoop;
</code></pre>

<p>So I get how much time has passed since last loop. However, whenever I try to use <code>System.nanoTime()</code> instead of <code>System,currentTimeMillis()</code> like this:</p>

<pre><code>long thisLoop = System.nanoTime();
delta = thisLoop - lastLoopTime;
lastLoopTime = thisLoop;
</code></pre>

<p>My game gets completely screwed, doesn't render anything past first frame, no errors reported just frozen. I´m on win 7 64 lastest java 1.6. What could be wrong?</p>
