using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PortScanner.Util { public static class HelperMethods { public static void PauseForXSeconds(int secondsPaused) { secondsPaused = (int)TimeSpanUtil.ConvertMillisecondsToSeconds(secondsPaused); System.Threading.Thread.Sleep(secondsPaused); } public static void PauseForXMinutes(int minutesPaused) { minutesPaused = (int)TimeSpanUtil.ConvertMinutesToMilliseconds(minutesPaused); System.Threading.Thread.Sleep(minutesPaused); } } }