OpenDDS  Snapshot(2023/04/28-20:55)
TimePoint_T.cpp
Go to the documentation of this file.
1 #include "TimePoint_T.h"
2 
3 #ifdef ACE_HAS_CPP11
4 # include <limits>
5 #else
6 # include <ace/Numeric_Limits.h>
7 #endif /* ACE_HAS_CPP11*/
8 
10 
11 namespace OpenDDS {
12 namespace DCPS {
13 
14 template<typename AceClock>
15 const TimePoint_T<AceClock> TimePoint_T<AceClock>::zero_value(ACE_Time_Value(0, 0));
16 
17 #ifdef ACE_HAS_CPP11
18 template<typename AceClock>
19 const TimePoint_T<AceClock> TimePoint_T<AceClock>::max_value(ACE_Time_Value(std::numeric_limits<time_t>::max(), ACE_ONE_SECOND_IN_USECS - 1));
20 #else
21 template<typename AceClock>
22 const TimePoint_T<AceClock> TimePoint_T<AceClock>::max_value(ACE_Time_Value(ACE_Numeric_Limits<time_t>::max(), ACE_ONE_SECOND_IN_USECS - 1));
23 #endif /* ACE_HAS_CPP11 */
24 
25 template<typename AceClock>
27 
28 }
29 }
30 
32 
33 #if !defined (__ACE_INLINE__)
34 # include "TimePoint_T.inl"
35 #endif /* __ACE_INLINE__ */
static const TimePoint_T< AceClock > zero_value
Definition: TimePoint_T.h:40
static const TimePoint_T< AceClock > max_value
Definition: TimePoint_T.h:41
static ClockType clock
Definition: TimePoint_T.h:117
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28