mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 19:55:02 +00:00
Implementing Sleep for simplsharp
This commit is contained in:
@@ -16,10 +16,10 @@ namespace ICD.Common.Utils
|
||||
/// Puts the current thread to sleep for the given amount of time.
|
||||
/// </summary>
|
||||
/// <param name="milliseconds"></param>
|
||||
public static void Sleep(long milliseconds)
|
||||
public static void Sleep(int milliseconds)
|
||||
{
|
||||
#if SIMPLSHARP
|
||||
throw new NotImplementedException();
|
||||
CrestronEnvironment.Sleep(milliseconds);
|
||||
#else
|
||||
Task.Delay(TimeSpan.FromMilliseconds(milliseconds)).Wait();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user