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)
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
>
20 ACE_Time_Value_T
<TIME_POLICY
>::now () const
22 return this->time_policy_ ();
25 template <class TIME_POLICY
>
27 ACE_Time_Value_T
<TIME_POLICY
>::to_relative_time () const
29 return (*this) - this->time_policy_ ();
32 template <class TIME_POLICY
>
34 ACE_Time_Value_T
<TIME_POLICY
>::to_absolute_time () const
36 return (*this) + this->time_policy_ ();
39 template <class TIME_POLICY
>
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);
48 ACE_END_VERSIONED_NAMESPACE_DECL
50 #endif /* ACE_TIME_VALUE_T_CPP */