]> git.saurik.com Git - wxWidgets.git/commitdiff
time() takes time_t, not [unsigned] long -- and in fact we don't need to pass it...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Apr 2004 12:49:52 +0000 (12:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Apr 2004 12:49:52 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/stopwatch.cpp

index ed4987fc09160338e8eecd8c835b740bf6beec8d..c0741a2f53e96ef19f3b99943675507bb63b7b2a 100644 (file)
@@ -193,12 +193,7 @@ long wxGetLocalTime()
 // Get UTC time as seconds since 00:00:00, Jan 1st 1970
 long wxGetUTCTime()
 {
 // Get UTC time as seconds since 00:00:00, Jan 1st 1970
 long wxGetUTCTime()
 {
-#ifdef _MSC_VER
-       unsigned
-#endif
-    long timenow = 0;
-    time(&timenow);
-    return timenow;
+    return (long)time(NULL);
 }
 
 #if wxUSE_LONGLONG
 }
 
 #if wxUSE_LONGLONG