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
This commit is contained in:
@@ -280,18 +280,35 @@ wxLongLong wxGetLocalTimeMillis()
|
|||||||
val *= wxGetLocalTime();
|
val *= wxGetLocalTime();
|
||||||
|
|
||||||
#if defined(__VISAGECPP__)
|
#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 <guille@iies.es>
|
||||||
|
#warning "Possible clock skew bug in wxGetLocalTimeMillis()!"
|
||||||
|
|
||||||
DATETIME dt;
|
DATETIME dt;
|
||||||
::DosGetDateTime(&dt);
|
::DosGetDateTime(&dt);
|
||||||
val += (dt.hundredths*10);
|
val += (dt.hundredths*10);
|
||||||
#elif defined (__WIN32__)
|
#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 <guille@iies.es>
|
||||||
#warning "Possible clock skew bug in wxGetLocalTimeMillis()!"
|
#warning "Possible clock skew bug in wxGetLocalTimeMillis()!"
|
||||||
|
|
||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
::GetLocalTime(&st);
|
::GetLocalTime(&st);
|
||||||
val += st.wMilliseconds;
|
val += st.wMilliseconds;
|
||||||
#else // !Win32
|
#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
|
||||||
|
// <guille@iies.es>
|
||||||
|
|
||||||
|
#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!"
|
#warning "wxStopWatch will be up to second resolution!"
|
||||||
#endif
|
#endif // compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
|
Reference in New Issue
Block a user