]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stopwatch.cpp
added wxStringStream classes
[wxWidgets.git] / src / common / stopwatch.cpp
index 2db111c612f9c9615761a6b31d3b6185d078a534..78de931ff6bac94da0877beff91020dfd68da03f 100644 (file)
@@ -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