18 lines
336 B
C#
18 lines
336 B
C#
using System.Diagnostics;
|
|
|
|
namespace Pilz.UI.WinForms;
|
|
|
|
public static class HelpfulFunctions
|
|
{
|
|
public static void Sleep(int milliseconds)
|
|
{
|
|
var stopw = new Stopwatch();
|
|
|
|
stopw.Start();
|
|
|
|
while (stopw.ElapsedMilliseconds < milliseconds)
|
|
Application.DoEvents();
|
|
|
|
stopw.Stop();
|
|
}
|
|
} |