mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 13:07:28 +00:00
Implementing Sleep for simplsharp
This commit is contained in:
parent
61f593a565
commit
e5ae4298ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue