git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5800
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-long wxStopWatch::Time() const
+inline long wxStopWatch::GetElapsedTime() const
- return (m_pause ? m_pause : GetElapsedTime());
+ return (wxGetLocalTimeMillis() - m_t0).GetLo();
-long wxStopWatch::GetElapsedTime() const
+long wxStopWatch::Time() const
- return (wxGetLocalTimeMillis() - m_t0).GetLo();
+ return (m_pause ? m_pause : GetElapsedTime());
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
{
return (val + tp.millitm);
}
{
return (val + tp.millitm);
}
+#else
+#warning "wxStopWatch will be up to second resolution!"