X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29468083f4aa7e7006809ebcc2b7cda0773f76fa..3e822cd8d0bdf04cd2c7a3dddff61dcc211f7439:/src/common/stopwatch.cpp?ds=sidebyside diff --git a/src/common/stopwatch.cpp b/src/common/stopwatch.cpp index 7575e5ba95..9cf9902ae1 100644 --- a/src/common/stopwatch.cpp +++ b/src/common/stopwatch.cpp @@ -79,8 +79,18 @@ #endif #ifdef __WXMAC__ +#ifndef __DARWIN__ #include #include +#else + #include +#endif +#endif + +#ifdef __WXPALMOS__ + #include + #include + #include #endif // ---------------------------------------------------------------------------- @@ -354,6 +364,13 @@ wxLongLong wxGetLocalTimeMillis() #endif // time functions } -#endif // wxUSE_LONGLONG +#else // !wxUSE_LONGLONG + +double wxGetLocalTimeMillis(void) +{ + return (double(clock()) / double(CLOCKS_PER_SEC)) * 1000.0; +} + +#endif // wxUSE_LONGLONG/!wxUSE_LONGLONG