X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/768c6e8be2cb044aac165c39e3f6847ee601ab0f..6d7b547184bfdcdf67790755deb0122050b1d728:/src/common/stopwatch.cpp diff --git a/src/common/stopwatch.cpp b/src/common/stopwatch.cpp index cd13eb0588..0739cf0f4b 100644 --- a/src/common/stopwatch.cpp +++ b/src/common/stopwatch.cpp @@ -28,14 +28,13 @@ #pragma hdrstop #endif +#include "wx/stopwatch.h" + #ifndef WX_PRECOMP #include "wx/intl.h" #include "wx/log.h" #endif //WX_PRECOMP -#include "wx/longlong.h" -#include "wx/stopwatch.h" - // ---------------------------------------------------------------------------- // System headers // ---------------------------------------------------------------------------- @@ -364,6 +363,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