X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20bc5ad8dd419d0d3e524079f8fdbe3d8c14231f..b7e5ba8f2d676583c790c59388eba8bfa9bd33c2:/src/common/stopwatch.cpp diff --git a/src/common/stopwatch.cpp b/src/common/stopwatch.cpp index 1ace26ef2d..9cf9902ae1 100644 --- a/src/common/stopwatch.cpp +++ b/src/common/stopwatch.cpp @@ -79,8 +79,12 @@ #endif #ifdef __WXMAC__ +#ifndef __DARWIN__ #include #include +#else + #include +#endif #endif #ifdef __WXPALMOS__ @@ -360,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