]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timercmn.cpp
Added wxEVT_SCROLL[WIN]_THUMBRELEASE
[wxWidgets.git] / src / common / timercmn.cpp
index 6ac860920723a96225cde9f0eb1d692d8bcacfc0..c350e8ca5bfad362b459eddefc70c83883e88777 100644 (file)
@@ -113,7 +113,7 @@ void wxStopWatch::Start(long t)
     m_pause = 0;
 }
 
-inline long wxStopWatch::GetElapsedTime() const
+long wxStopWatch::GetElapsedTime() const
 {
     return (wxGetLocalTimeMillis() - m_t0).GetLo();
 }
@@ -245,6 +245,10 @@ wxLongLong wxGetLocalTimeMillis()
     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 )
@@ -258,7 +262,9 @@ wxLongLong wxGetLocalTimeMillis()
         return (val + tp.millitm);
     }
 #else
+#if !defined(__BORLANDC__) && !(defined(__VISUALC__) && defined(__WIN16__))
     #warning "wxStopWatch will be up to second resolution!"
+#endif
 #endif
 
     return val;