public static void PassTime(double gameTime, double trueTime = 1) { if (trueTime < 0.1f) { trueTime = 0.1f; } PETimer tar = new PETimer(); tar.Tick = Timer.Tick; PETimer add = new PETimer(); add.Second = gameTime; tar.AddTime(add); _targetTick = tar.Tick; Timer.ElapseSpeed = (float)(gameTime / trueTime); _passingTime = true; }