mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +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.
|
/// Puts the current thread to sleep for the given amount of time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="milliseconds"></param>
|
/// <param name="milliseconds"></param>
|
||||||
public static void Sleep(long milliseconds)
|
public static void Sleep(int milliseconds)
|
||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
throw new NotImplementedException();
|
CrestronEnvironment.Sleep(milliseconds);
|
||||||
#else
|
#else
|
||||||
Task.Delay(TimeSpan.FromMilliseconds(milliseconds)).Wait();
|
Task.Delay(TimeSpan.FromMilliseconds(milliseconds)).Wait();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user