]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stopwatch.cpp
don't crash if one of GetAllCommands() parameters is NULL (coverity checker CID 11)
[wxWidgets.git] / src / common / stopwatch.cpp
index cd13eb058882e55cee011b27bd59f164cbde7523..9cf9902ae13209acb5170364789ce4d6602c1e7e 100644 (file)
@@ -364,6 +364,13 @@ wxLongLong wxGetLocalTimeMillis()
 #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