Losing time

Here is the code I used to find how much the model should move each frame in the J3d tutorial I wrote a couple of years back.


public double getStep()
{
   long echo = J3DTimer.getValue();
   double wrongun= ((echo-oldTime)/1000);
   wrongun = wrongun*step;
   oldTime=echo;
   return wrongun;
}

Basically it just finds how long it is since the method was last called and muliplies that by a standard step size.

That worked fine between my PC at the time and other slower ones I tried but now that i’ve upgraded my motherboard the model seems to fly around the place ridiculously fast again.

Can anyone suggest why this should be?