m_pause = 0;
}
-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);
}
+#else
+#warning "wxStopWatch will be up to second resolution!"
#endif
return val;