diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 19:31:26 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 19:31:26 +0000 |
commit | 10f0cfeaf84724d87a4c1ddf476776d9e2bdba06 (patch) | |
tree | 15ac3b11d0132793cd93d3ea8e0c72321a128408 /ace | |
parent | 5fc268c8a94824d5130cc6a1552931307c1a633a (diff) | |
download | ATCD-10f0cfeaf84724d87a4c1ddf476776d9e2bdba06.tar.gz |
ChangeLogTag: Thu Jul 08 14:29:42 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.i | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -9773,7 +9773,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op) // Carefully create the return value to avoid arithmetic overflow // if ACE_hrtime_t is ACE_U_LongLong. ACE_hrtime_t now = ts.tv_sec; - now *= (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS; + now *= ACE_U_ONE_SECOND_IN_NSECS; now += ts.tv_nsec; return now; @@ -9818,8 +9818,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op) // Carefully create the return value to avoid arithmetic overflow // if ACE_hrtime_t is ACE_U_LongLong. return ACE_static_cast (ACE_hrtime_t, ts.tv_sec) * - (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS + - ts.tv_nsec; + ACE_U_ONE_SECOND_IN_NSECS + ACE_static_cast (ACE_hrtime_t, ts.tv_nsec); #else ACE_UNUSED_ARG (op); const ACE_Time_Value now = ACE_OS::gettimeofday (); |