/// <summary> /// Delaies the seconds. /// </summary> /// <param name='delay_time'> /// Delay_time. /// </param> /// <exception cref='OverflowException'> /// Is thrown when the result of an arithmetic operation is too large to be represented by the destination type. /// </exception> public static void DelaySeconds(int delay_time) { int delay_time_max = int.MaxValue / 1000; int delay_time_temp = delay_time * 1000; if (delay_time_temp <= delay_time_max) { SdlSystem.SDL_Delay((uint)delay_time); } else { throw new OverflowException(); } }
/// <summary> /// Delaies the ticks. /// </summary> /// <param name='delay_time'> /// Delay_time. /// </param> public static void DelayTicks(uint delay_time) { SdlSystem.SDL_Delay(delay_time); }