Files
SabreTools.RedumpLib/SabreTools.RedumpLib.Legacy/Web/DelayHelper.cs
2026-07-05 09:51:40 -04:00

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);
}
}
}