mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-07-08 18:16:25 +00:00
22 lines
482 B
C#
22 lines
482 B
C#
using System;
|
|
using System.Threading;
|
|
|
|
namespace SabreTools.RedumpLib.Legacy.Web
|
|
{
|
|
/// <summary>
|
|
/// Helper class for delaying
|
|
/// </summary>
|
|
internal static class DelayHelper
|
|
{
|
|
/// <summary>
|
|
/// Delay a random amount of time up to 5 seconds
|
|
/// </summary>
|
|
public static void DelayRandom()
|
|
{
|
|
var r = new Random();
|
|
int delay = r.Next(0, 50);
|
|
Thread.Sleep(delay * 100);
|
|
}
|
|
}
|
|
}
|