m_pause = 0;
}
-inline long wxStopWatch::GetElapsedTime() const
+long wxStopWatch::GetElapsedTime() const
{
return (wxGetLocalTimeMillis() - m_t0).GetLo();
}
SYSTEMTIME st;
::GetLocalTime(&st);
return (val + st.wMilliseconds);
+#elif defined(__VISAGECPP__)
+ DATETIME dt;
+ ::DosGetDateTime(&dt);
+ return (val + dt.hundredths*10);
#elif defined(HAVE_GETTIMEOFDAY)
struct timeval tp;
if ( wxGetTimeOfDay(&tp, (struct timezone *)NULL) != -1 )
return (val + tp.millitm);
}
#else
+#if !defined(__BORLANDC__) && !(defined(__VISUALC__) && defined(__WIN16__))
#warning "wxStopWatch will be up to second resolution!"
+#endif
#endif
return val;