diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-12 22:22:31 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-12 22:22:31 +0000 |
commit | a5871ecd93cff36516638a5a1e028bc134c54354 (patch) | |
tree | 81a6d84197f45df4e3d1dd8f649f5ca412639ce7 /ace/High_Res_Timer.i | |
parent | a033a40ff39c2172b517fa6413ea4902f6cd20c2 (diff) | |
download | ATCD-a5871ecd93cff36516638a5a1e028bc134c54354.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/High_Res_Timer.i')
-rw-r--r-- | ace/High_Res_Timer.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i index 6bd78736df5..8d360217f41 100644 --- a/ace/High_Res_Timer.i +++ b/ace/High_Res_Timer.i @@ -10,8 +10,8 @@ ACE_High_Res_Timer::hrtime_to_tv (ACE_Time_Value &tv, // The following are based on the units of global_scale_factor_ // being 1/microsecond. Therefore, dividing by it converts // clock ticks to microseconds. - tv.sec ((long) (hrt / global_scale_factor_) / 1000000); - tv.usec ((long) (hrt / global_scale_factor_) % 1000000); + tv.sec ((long) (hrt / global_scale_factor_) / ACE_ONE_SECOND_IN_USECS); + tv.usec ((long) (hrt / global_scale_factor_) % ACE_ONE_SECOND_IN_USECS); } @@ -45,7 +45,7 @@ ACE_High_Res_Timer::gettime (void) ACE_Time_Value tv = ACE_OS::gettimeofday (); // Return the time in microseconds because the global_scale_factor_ // is 1. - return tv.sec () * 1000000 + tv.usec (); + return tv.sec () * ACE_ONE_SECOND_IN_USECS + tv.usec (); } #endif /* ACE_WIN32 */ |