mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 17:13:47 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
50
deps/acelite/ace/Time_Value_T.cpp
vendored
Normal file
50
deps/acelite/ace/Time_Value_T.cpp
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
#ifndef ACE_TIME_VALUE_T_CPP
|
||||
#define ACE_TIME_VALUE_T_CPP
|
||||
|
||||
#include "ace/Time_Value_T.h"
|
||||
|
||||
#if !defined (ACE_LACKS_PRAGMA_ONCE)
|
||||
# pragma once
|
||||
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/Time_Value_T.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
#include "ace/OS_Memory.h"
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Time_Value
|
||||
ACE_Time_Value_T<TIME_POLICY>::now () const
|
||||
{
|
||||
return this->time_policy_ ();
|
||||
}
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Time_Value
|
||||
ACE_Time_Value_T<TIME_POLICY>::to_relative_time () const
|
||||
{
|
||||
return (*this) - this->time_policy_ ();
|
||||
}
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Time_Value
|
||||
ACE_Time_Value_T<TIME_POLICY>::to_absolute_time () const
|
||||
{
|
||||
return (*this) + this->time_policy_ ();
|
||||
}
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Time_Value *
|
||||
ACE_Time_Value_T<TIME_POLICY>::duplicate () const
|
||||
{
|
||||
ACE_Time_Value_T<TIME_POLICY> * tmp = 0;
|
||||
ACE_NEW_RETURN (tmp, ACE_Time_Value_T<TIME_POLICY> (*this), 0);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#endif /* ACE_TIME_VALUE_T_CPP */
|
||||
Reference in New Issue
Block a user