summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-12 22:22:31 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-12 22:22:31 +0000
commita5871ecd93cff36516638a5a1e028bc134c54354 (patch)
tree81a6d84197f45df4e3d1dd8f649f5ca412639ce7 /ace/OS.cpp
parenta033a40ff39c2172b517fa6413ea4902f6cd20c2 (diff)
downloadATCD-a5871ecd93cff36516638a5a1e028bc134c54354.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 5a0c9ccc839..6c979f80565 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -98,34 +98,34 @@ ACE_Time_Value::normalize (void)
// ACE_TRACE ("ACE_Time_Value::normalize");
// New code from Hans Rohnert...
- if (this->tv_.tv_usec >= ONE_SECOND)
+ if (this->tv_.tv_usec >= ACE_ONE_SECOND_IN_USECS)
{
do
{
this->tv_.tv_sec++;
- this->tv_.tv_usec -= ONE_SECOND;
+ this->tv_.tv_usec -= ACE_ONE_SECOND_IN_USECS;
}
- while (this->tv_.tv_usec >= ONE_SECOND);
+ while (this->tv_.tv_usec >= ACE_ONE_SECOND_IN_USECS);
}
- else if (this->tv_.tv_usec <= -ONE_SECOND)
+ else if (this->tv_.tv_usec <= -ACE_ONE_SECOND_IN_USECS)
{
do
{
this->tv_.tv_sec--;
- this->tv_.tv_usec += ONE_SECOND;
+ this->tv_.tv_usec += ACE_ONE_SECOND_IN_USECS;
}
- while (this->tv_.tv_usec <= -ONE_SECOND);
+ while (this->tv_.tv_usec <= -ACE_ONE_SECOND_IN_USECS);
}
if (this->tv_.tv_sec >= 1 && this->tv_.tv_usec < 0)
{
this->tv_.tv_sec--;
- this->tv_.tv_usec += ONE_SECOND;
+ this->tv_.tv_usec += ACE_ONE_SECOND_IN_USECS;
}
else if (this->tv_.tv_sec < 0 && this->tv_.tv_usec > 0)
{
this->tv_.tv_sec++;
- this->tv_.tv_usec -= ONE_SECOND;
+ this->tv_.tv_usec -= ACE_ONE_SECOND_IN_USECS;
}
}