diff --git a/ICD.Common.Utils/ThreadingUtils.cs b/ICD.Common.Utils/ThreadingUtils.cs index 2ef5ccf..8ecb48e 100644 --- a/ICD.Common.Utils/ThreadingUtils.cs +++ b/ICD.Common.Utils/ThreadingUtils.cs @@ -12,6 +12,19 @@ namespace ICD.Common.Utils { public static class ThreadingUtils { + /// + /// Puts the current thread to sleep for the given amount of time. + /// + /// + public static void Sleep(long milliseconds) + { +#if SIMPLSHARP + throw new NotImplementedException(); +#else + Task.Delay(TimeSpan.FromMilliseconds(milliseconds)).Wait(); +#endif + } + /// /// Executes the callback as a short-lived, threaded task. ///