#include "ace/config-all.h"
#include "ace/OS_NS_errno.h"
#include "ace/Basic_Types.h"
#include "ace/os_include/os_time.h"
#include "ace/ACE_export.h"
#include "ace/OS_NS_time.inl"
Include dependency graph for OS_NS_time.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | ACE_OS |
Defines | |
#define | ACE_EXPORT_MACRO ACE_Export |
#define | ACE_HRTIME_CONVERSION(VAL) ACE_U64_TO_U32(VAL) |
#define | ACE_HRTIME_TO_U64(VAL) (VAL) |
#define | ACE_GETHRTIME_NAME ACE_gethrtime |
#define | ACE_INLINE inline |
Typedefs | |
typedef unsigned __int64 | ACE_QWORD |
typedef unsigned __int64 | ACE_hrtime_t |
Functions | |
long | ace_timezone () |
Helper for the ACE_OS::timezone() function. | |
double | ace_difftime (time_t t1, time_t t0) |
Helper for the ACE_OS::difftime() function. | |
ACE_QWORD | ACE_MAKE_QWORD (DWORD lo, DWORD hi) |
DWORD | ACE_LOW_DWORD (ACE_QWORD q) |
DWORD | ACE_HIGH_DWORD (ACE_QWORD q) |
Variables | |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL const ACE_UINT32 | ACE_U_ONE_SECOND_IN_MSECS = 1000U |
const ACE_UINT32 | ACE_U_ONE_SECOND_IN_USECS = 1000000U |
const ACE_UINT32 | ACE_U_ONE_SECOND_IN_NSECS = 1000000000U |
Jesper S. M|ller<stophph@diku.dk>
and a cast of thousands...
Definition in file OS_NS_time.h.
|
Definition at line 36 of file OS_NS_time.h. |
|
Definition at line 287 of file OS_NS_time.h. Referenced by ACE_OS::gethrtime(). |
|
Definition at line 155 of file OS_NS_time.h. Referenced by ACE_High_Res_Timer::calibrate(). |
|
Definition at line 156 of file OS_NS_time.h. |
|
Definition at line 295 of file OS_NS_time.h. |
|
|
Definition at line 131 of file OS_NS_time.h. Referenced by ACE_MAKE_QWORD(). |
|
Helper for the ACE_OS::difftime() function. We moved the difftime code that used to be in ACE_OS::difftime() here because on some platforms "difftime" is a macro. Because of this, the name ACE_OS::difftime will cause errors. So in order to use the macro as it is defined but also keep the name ACE_OS::difftime, we use difftime first here in this inline function, and then undefine it. Definition at line 122 of file OS_NS_time.h. Referenced by ACE_OS::difftime().
00123 { 00124 return difftime (t1, t0); 00125 } |
|
Definition at line 135 of file OS_NS_time.h.
00135 { return (DWORD) (q >> 32); }
|
|
Definition at line 134 of file OS_NS_time.h.
00134 { return (DWORD) q; }
|
|
Definition at line 133 of file OS_NS_time.h. References ACE_QWORD.
|
|
Helper for the ACE_OS::timezone() function. We put all the timezone stuff that used to be in ACE_OS::timezone() here because on some platforms "timezone" is a macro. Because of this, the name ACE_OS::timezone will cause errors. So in order to use the macro as it is defined but also keep the name ACE_OS::timezone, we use timezone first here in this inline function, and then undefine timezone. Definition at line 78 of file OS_NS_time.h. References ACE_NOTSUP_RETURN. Referenced by ACE_OS::timezone().
00079 { 00080 #if defined (ACE_HAS_WINCE) 00081 TIME_ZONE_INFORMATION tz; 00082 GetTimeZoneInformation (&tz); 00083 return tz.Bias * 60; 00084 #elif defined (ACE_WIN32) && !defined (ACE_HAS_DINKUM_STL) 00085 return _timezone; // For Win32. 00086 #elif defined (ACE_WIN32) && defined (ACE_HAS_DINKUM_STL) 00087 time_t tod = time(0); // get current time 00088 time_t t1 = mktime(gmtime(&tod)); // convert without timezone 00089 time_t t2 = mktime(localtime(&tod)); // convert with timezone 00090 return difftime(t1, t2); // compute difference in seconds 00091 #elif defined (ACE_HAS_TIMEZONE) 00092 // The XPG/POSIX specification requires that tzset() be called to 00093 // set the global variable <timezone>. 00094 ::tzset(); 00095 return timezone; 00096 #elif defined (ACE_HAS_TIMEZONE_GETTIMEOFDAY) 00097 // The XPG/POSIX specification does not require gettimeofday to 00098 // set the timezone struct (it leaves the behavior of passing a 00099 // non-null struct undefined). 00100 long result = 0; 00101 struct timeval time; 00102 struct timezone zone; 00103 ACE_UNUSED_ARG (result); 00104 ACE_OSCALL (::gettimeofday (&time, &zone), int, -1, result); 00105 return zone.tz_minuteswest * 60; 00106 #else 00107 ACE_NOTSUP_RETURN (0); 00108 #endif 00109 } |
|
Definition at line 46 of file OS_NS_time.h. |
|
Definition at line 48 of file OS_NS_time.h. |
|
Definition at line 47 of file OS_NS_time.h. |