X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57a1fb7e07a901a77d00932b6cae8ce4ab55c2e..7f19fc8cae9c4eced886d3680dab7a48476f1c1e:/src/mac/thread.cpp diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index 5ea6f21f32..474b92a22f 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -523,11 +523,11 @@ void wxThread::Yield() void wxThread::Sleep(unsigned long milliseconds) { - clock_t start = clock() ; - do - { - YieldToAnyThread() ; - } while( clock() - start < milliseconds / CLOCKS_PER_SEC ) ; + clock_t start = clock(); + do + { + YieldToAnyThread(); + } while( clock() - start < (milliseconds * CLOCKS_PER_SEC) / 1000 ) ; } int wxThread::GetCPUCount()