]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stopwatch.cpp
allow changing the page from keyboard in property sheet like controls even when the...
[wxWidgets.git] / src / common / stopwatch.cpp
index cd13eb058882e55cee011b27bd59f164cbde7523..0739cf0f4bf2453d3d3cb456231d62176249d2e2 100644 (file)
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#include "wx/stopwatch.h"
+
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
 #endif //WX_PRECOMP
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
 #endif //WX_PRECOMP
 
-#include "wx/longlong.h"
-#include "wx/stopwatch.h"
-
 // ----------------------------------------------------------------------------
 // System headers
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // System headers
 // ----------------------------------------------------------------------------
@@ -364,6 +363,13 @@ wxLongLong wxGetLocalTimeMillis()
 #endif // time functions
 }
 
 #endif // time functions
 }
 
-#endif // wxUSE_LONGLONG
+#else // !wxUSE_LONGLONG
+
+double wxGetLocalTimeMillis(void)
+{
+    return (double(clock()) / double(CLOCKS_PER_SEC)) * 1000.0;
+}
+
+#endif // wxUSE_LONGLONG/!wxUSE_LONGLONG