Using local time meant that wxStopWatch didn't work reliably around DST
changes. It also was completely unnecessary, just use the UTC clock instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69840
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
#endif // __WXMSW__
- return wxGetLocalTimeMillis();
+ return wxGetUTCTimeMillis();
}
wxLongLong wxStopWatch::TimeInMicro() const
// starts the global timer
void wxStartTimer()
{
- wxStartTime = wxGetLocalTimeMillis();
+ wxStartTime = wxGetUTCTimeMillis();
}
// Returns elapsed time in milliseconds
long wxGetElapsedTime(bool resetTimer)
{
wxLongLong oldTime = wxStartTime;
- wxLongLong newTime = wxGetLocalTimeMillis();
+ wxLongLong newTime = wxGetUTCTimeMillis();
if ( resetTimer )
wxStartTime = newTime;