From fd7cf53286bc8d3b5c9be36595e8bd232c965ad3 Mon Sep 17 00:00:00 2001 From: Sylvain Bougnoux Date: Wed, 16 Feb 2000 13:05:55 +0000 Subject: [PATCH] Fixed wxGetLocalTimesMillis using HAVE_GETTIMEOFDAY\nPlease fix the others...\nThen remove val*=wxGetLocalTime() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/timercmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index c350e8ca5b..4cb3e51b17 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -109,13 +109,12 @@ void wxTimerBase::Notify() 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 @@ -253,6 +252,7 @@ wxLongLong wxGetLocalTimeMillis() struct timeval tp; if ( wxGetTimeOfDay(&tp, (struct timezone *)NULL) != -1 ) { + val *= tp.tv_sec; return (val + (tp.tv_usec / 1000)); } #elif defined(HAVE_FTIME) -- 2.45.2