X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4056c8fe0c3d72a1c2df3d28222b261b6a5987b2..121fa06ab6af9129e776af13949fc251a3cafc49:/src/common/stopwatch.cpp?ds=sidebyside diff --git a/src/common/stopwatch.cpp b/src/common/stopwatch.cpp index 2db111c612..78de931ff6 100644 --- a/src/common/stopwatch.cpp +++ b/src/common/stopwatch.cpp @@ -9,7 +9,7 @@ // Modified by: // Created: 20.06.2003 (extracted from common/timercmn.cpp) // RCS-ID: $Id$ -// Copyright: (c) 1998-2003 wxWindows Team +// Copyright: (c) 1998-2003 wxWidgets Team // License: wxWindows license /////////////////////////////////////////////////////////////////////////////// @@ -193,9 +193,7 @@ long wxGetLocalTime() // Get UTC time as seconds since 00:00:00, Jan 1st 1970 long wxGetUTCTime() { - long timenow = 0; - time(&timenow); - return timenow; + return (long)time(NULL); } #if wxUSE_LONGLONG