// 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
///////////////////////////////////////////////////////////////////////////////
// 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
wxLongLong now( nowft.dwHighDateTime, nowft.dwLowDateTime ); // time in 100 nanoseconds
return ( now - then ) / 10000.0; // time from 00:00:00 Jan 1st 1970 to now in milliseconds
-
+
#elif defined(HAVE_GETTIMEOFDAY)
struct timeval tp;
if ( wxGetTimeOfDay(&tp, (struct timezone *)NULL) != -1 )
val *= tp.time;
return (val + tp.millitm);
#elif defined(__WXMAC__)
-
+
static UInt64 gMilliAtStart = 0;
Nanoseconds upTime = AbsoluteToNanoseconds( UpTime() );