From 940b4f0741b2589ea75fa64250c5a57210e2aded Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 21 Apr 2004 12:49:52 +0000 Subject: [PATCH] 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 --- src/common/stopwatch.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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