Hi!
Yesterday I run into this very strange problem.
I call the renderPicture() method several times per second (from 5 to 40 times). Among other things, it prints the time past since program start (T is initialized on object creation; only one object is created)
The method is called from a loop, which puts the Graphics on screen and then Thread.sleep()'s a while.
On some program runs, it counts two times too fast. It is not hard to notice, but I also measured with a wristwatch. When 10 real seconds passed, the printed value increased by 20.
I use JDK 6 Update 6 on Windows 2003, CPU is Intel Q6600.
Is this a known issue ? Or did I just misprogram something ?
I did not reproduce this yet on another PC, but will try to do that.
So, to conclude: usually, this method prints second values, that increase by one as one real second passes. But in some cases (depending on the argument for the sleep() method; on the
test system, the value 45 caused problems) it count too fast by a factor of two.