]> git.saurik.com Git - wxWidgets.git/commitdiff
usleep fix
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 2 Mar 2003 22:45:53 +0000 (22:45 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 2 Mar 2003 22:45:53 +0000 (22:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp
src/mac/utils.cpp

index a3f95679a95680d9a2db9eef54dfb66aeffafaaf..3897dadd575d4f17f6fc18deeea77a8391b6c5d8 100644 (file)
@@ -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)
index a3f95679a95680d9a2db9eef54dfb66aeffafaaf..3897dadd575d4f17f6fc18deeea77a8391b6c5d8 100644 (file)
@@ -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)