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();
|
||||
|
||||
#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;
|
||||
::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 <guille@iies.es>
|
||||
#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
|
||||
// <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!"
|
||||
#endif
|
||||
#endif // compiler
|
||||
#endif
|
||||
|
||||
return val;
|
||||
|
Reference in New Issue
Block a user