diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index 64dbb0aac2..15d1abc07e 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -89,16 +89,16 @@ void wxStopWatch::Start(long t) m_pause = 0; } +inline long wxStopWatch::GetElapsedTime() const +{ + return (wxGetLocalTimeMillis() - m_t0).GetLo(); +} + long wxStopWatch::Time() const { return (m_pause ? m_pause : GetElapsedTime()); } -long wxStopWatch::GetElapsedTime() const -{ - return (wxGetLocalTimeMillis() - m_t0).GetLo(); -} - // ---------------------------------------------------------------------------- // old timer functions superceded by wxStopWatch // ---------------------------------------------------------------------------- @@ -233,6 +233,8 @@ wxLongLong wxGetLocalTimeMillis() { return (val + tp.millitm); } +#else +#warning "wxStopWatch will be up to second resolution!" #endif return val;