From b814f3aa5c471a38b7263482ddedc6740ce0e9c6 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Wed, 5 Jul 2000 05:43:28 +0000 Subject: [PATCH] Re-added a few warnings. Please don't just shut them off, drop me a line instead (guille@iies.es) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/timercmn.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index 95f42ef18d..f308c3ff1e 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -280,18 +280,35 @@ wxLongLong wxGetLocalTimeMillis() val *= wxGetLocalTime(); #if defined(__VISAGECPP__) + // If your platform/compiler needs to use two different functions + // to get ms resolution, please do NOT just shut off these warnings, + // drop me a line instead at + #warning "Possible clock skew bug in wxGetLocalTimeMillis()!" + DATETIME dt; ::DosGetDateTime(&dt); val += (dt.hundredths*10); #elif defined (__WIN32__) + // If your platform/compiler needs to use two different functions + // to get ms resolution, please do NOT just shut off these warnings, + // drop me a line instead at #warning "Possible clock skew bug in wxGetLocalTimeMillis()!" + SYSTEMTIME st; ::GetLocalTime(&st); val += st.wMilliseconds; #else // !Win32 - #if !defined(__VISUALC__) && !defined(__BORLANDC__) + // If your platform/compiler does not support ms resolution please + // do NOT just shut off these warnings, drop me a line instead at + // + + #if defined(__VISUALC__) + #pragma message("wxStopWatch will be up to second resolution!") + #elif defined(__BORLANDC__) + #pragma warning "wxStopWatch will be up to second resolution!" + #else #warning "wxStopWatch will be up to second resolution!" - #endif + #endif // compiler #endif return val;