-> PortScanner added
This commit is contained in:
23
Networking/Util/HelperMethods.cs
Normal file
23
Networking/Util/HelperMethods.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user