From: Vadim Zeitlin Date: Wed, 21 Apr 2004 12:49:52 +0000 (+0000) Subject: time() takes time_t, not [unsigned] long -- and in fact we don't need to pass it... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/940b4f0741b2589ea75fa64250c5a57210e2aded?ds=sidebyside time() takes time_t, not [unsigned] long -- and in fact we don't need to pass it any argument at all git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/stopwatch.cpp b/src/common/stopwatch.cpp index ed4987fc09..c0741a2f53 100644 --- a/src/common/stopwatch.cpp +++ b/src/common/stopwatch.cpp @@ -193,12 +193,7 @@ long wxGetLocalTime() // 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