From e5ae4298ca9ac49e56a29565d7431cf9b99af270 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Mon, 2 Oct 2017 09:45:58 -0400 Subject: [PATCH] Implementing Sleep for simplsharp --- ICD.Common.Utils/ThreadingUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICD.Common.Utils/ThreadingUtils.cs b/ICD.Common.Utils/ThreadingUtils.cs index 8ecb48e..34dad6e 100644 --- a/ICD.Common.Utils/ThreadingUtils.cs +++ b/ICD.Common.Utils/ThreadingUtils.cs @@ -16,10 +16,10 @@ namespace ICD.Common.Utils /// Puts the current thread to sleep for the given amount of time. /// /// - 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