diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-12-22 19:16:29 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-12-22 19:16:29 +0000 |
commit | 51020a0fad18b88794730c7d4f03b253b438febc (patch) | |
tree | 979da7b58f570c56e7ffac6f4957e73ac5b701bf /ace | |
parent | b1c66004271c2a90da6903651bb1621c9ab12ab2 (diff) | |
download | ATCD-51020a0fad18b88794730c7d4f03b253b438febc.tar.gz |
ChangeLogTag: Thu Dec 22 14:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Time_Value.cpp | 6 | ||||
-rw-r--r-- | ace/Time_Value.h | 4 | ||||
-rw-r--r-- | ace/Time_Value.inl | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/ace/Time_Value.cpp b/ace/Time_Value.cpp index 7fe45244eb3..5b7d6021d84 100644 --- a/ace/Time_Value.cpp +++ b/ace/Time_Value.cpp @@ -149,12 +149,6 @@ ACE_Time_Value::operator FILETIME () const #endif /* ACE_WIN32 */ -void ACE_Time_Value::set (const time_t &t) -{ - this->tv_.tv_sec = t; -} - - void ACE_Time_Value::dump (void) const { diff --git a/ace/Time_Value.h b/ace/Time_Value.h index 27acef90d32..2166f7e5d24 100644 --- a/ace/Time_Value.h +++ b/ace/Time_Value.h @@ -139,8 +139,8 @@ public: void set (const FILETIME &ft); # endif /* ACE_WIN32 */ - /// Initializes a ACE_Time_Value object form a time_t. - void set (const time_t &t); + /// Initializes a ACE_Time_Value object from a time_t. + void set (time_t t); /// Converts from ACE_Time_Value format into milli-seconds format. /** diff --git a/ace/Time_Value.inl b/ace/Time_Value.inl index 3072598d286..e7debce2376 100644 --- a/ace/Time_Value.inl +++ b/ace/Time_Value.inl @@ -64,6 +64,13 @@ ACE_Time_Value::set (long sec, long usec) } ACE_INLINE void +ACE_Time_Value::set (time_t t) +{ + this->tv_.tv_sec = t; + this->tv_.tv_usec = 0; +} + +ACE_INLINE void ACE_Time_Value::set (double d) { // ACE_OS_TRACE ("ACE_Time_Value::set"); |