git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6076
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxStopWatch::Start(long t)
{
m_t0 = wxGetLocalTimeMillis() - t;
-
m_pause = 0;
}
long wxStopWatch::GetElapsedTime() const
{
- return (wxGetLocalTimeMillis() - m_t0).GetLo();
+ return (wxGetLocalTimeMillis() - m_t0).GetLo();
}
long wxStopWatch::Time() const
struct timeval tp;
if ( wxGetTimeOfDay(&tp, (struct timezone *)NULL) != -1 )
{
+ val *= tp.tv_sec;
return (val + (tp.tv_usec / 1000));
}
#elif defined(HAVE_FTIME)