Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Time_Value_T.cpp
blob79689d904c3af0b1d8d91b5e68875535b403ecec
1 #ifndef ACE_TIME_VALUE_T_CPP
2 #define ACE_TIME_VALUE_T_CPP
4 #include "ace/Time_Value_T.h"
6 #if !defined (ACE_LACKS_PRAGMA_ONCE)
7 # pragma once
8 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 #if !defined (__ACE_INLINE__)
11 #include "ace/Time_Value_T.inl"
12 #endif /* __ACE_INLINE__ */
14 #include "ace/OS_Memory.h"
16 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 template <class TIME_POLICY>
19 ACE_Time_Value
20 ACE_Time_Value_T<TIME_POLICY>::now () const
22 return this->time_policy_ ();
25 template <class TIME_POLICY>
26 ACE_Time_Value
27 ACE_Time_Value_T<TIME_POLICY>::to_relative_time () const
29 return (*this) - this->time_policy_ ();
32 template <class TIME_POLICY>
33 ACE_Time_Value
34 ACE_Time_Value_T<TIME_POLICY>::to_absolute_time () const
36 return (*this) + this->time_policy_ ();
39 template <class TIME_POLICY>
40 ACE_Time_Value *
41 ACE_Time_Value_T<TIME_POLICY>::duplicate () const
43 ACE_Time_Value_T<TIME_POLICY> * tmp = 0;
44 ACE_NEW_RETURN (tmp, ACE_Time_Value_T<TIME_POLICY> (*this), 0);
45 return tmp;
48 ACE_END_VERSIONED_NAMESPACE_DECL
50 #endif /* ACE_TIME_VALUE_T_CPP */