summaryrefslogtreecommitdiff
path: root/ACE/ace/Time_Value.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2007-02-01 23:49:09 +0000
committerSteve Huston <shuston@riverace.com>2007-02-01 23:49:09 +0000
commit5f5743f6a124dfb72862455841c19d3aca567a10 (patch)
treec108d3a712a78aab802bdbfd9b79138fae97ace5 /ACE/ace/Time_Value.cpp
parent84ae091dd59172577e9309541a74366552752f70 (diff)
downloadATCD-5f5743f6a124dfb72862455841c19d3aca567a10.tar.gz
ChangeLogTag:Thu Feb 1 23:46:27 UTC 2007 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Time_Value.cpp')
-rw-r--r--ACE/ace/Time_Value.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/ACE/ace/Time_Value.cpp b/ACE/ace/Time_Value.cpp
index 25841b6cfa9..61b64c3b5b4 100644
--- a/ACE/ace/Time_Value.cpp
+++ b/ACE/ace/Time_Value.cpp
@@ -23,15 +23,8 @@ const ACE_Time_Value ACE_Time_Value::zero;
// Its primary use is in time computations such as those used by the
// dynamic subpriority strategies in the ACE_Dynamic_Message_Queue class.
// Note: this object requires static construction.
-// Note: On Win64, time_t is 64 bits, yet the timeval members used
-// internally to ACE_Time_Value are still long. This makes time values
-// outside the LONG_MAX, LONG_MIN range very broken.
const ACE_Time_Value ACE_Time_Value::max_time (
-#if !defined (ACE_WIN64)
ACE_Numeric_Limits<time_t>::max (),
-#else
- LONG_MAX,
-#endif
ACE_ONE_SECOND_IN_USECS - 1);
ACE_ALLOC_HOOK_DEFINE (ACE_Time_Value)
@@ -226,7 +219,7 @@ ACE_Time_Value::operator *= (double d)
+ static_cast<double> (this->usec ()) / ACE_ONE_SECOND_IN_USECS) * d;
// shall we saturate the result?
-#if !defined(ACE_LACKS_NUMERIC_LIMITS) && !defined (ACE_WIN64)
+#if !defined(ACE_LACKS_NUMERIC_LIMITS)
static const double max_int = std::numeric_limits<time_t>::max () + 0.999999;
static const double min_int = std::numeric_limits<time_t>::min () - 0.999999;
#else