From: Stefan Csomor Date: Sun, 2 Mar 2003 22:45:53 +0000 (+0000) Subject: usleep fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2a616188312459d6a53fc622b999c0fc5537b9fe usleep fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index a3f95679a9..3897dadd57 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -162,7 +162,7 @@ void wxUsleep(unsigned long milliseconds) do { YieldToAnyThread() ; - } while( clock() - start < milliseconds / CLOCKS_PER_SEC ) ; + } while( clock() - start < milliseconds / 1000.0 * CLOCKS_PER_SEC ) ; } void wxSleep(int nSecs) diff --git a/src/mac/utils.cpp b/src/mac/utils.cpp index a3f95679a9..3897dadd57 100644 --- a/src/mac/utils.cpp +++ b/src/mac/utils.cpp @@ -162,7 +162,7 @@ void wxUsleep(unsigned long milliseconds) do { YieldToAnyThread() ; - } while( clock() - start < milliseconds / CLOCKS_PER_SEC ) ; + } while( clock() - start < milliseconds / 1000.0 * CLOCKS_PER_SEC ) ; } void wxSleep(int nSecs)