summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/OutgoingAsync.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-09-05 14:44:03 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-09-05 14:44:03 -0230
commitbdcf4f222f50b915d2dfc0ea3960758adf6937db (patch)
treee263a048b6297395c97e860c87a0ca27b569cb08 /java/src/IceInternal/OutgoingAsync.java
parentAdded missing file (diff)
downloadice-bdcf4f222f50b915d2dfc0ea3960758adf6937db.tar.bz2
ice-bdcf4f222f50b915d2dfc0ea3960758adf6937db.tar.xz
ice-bdcf4f222f50b915d2dfc0ea3960758adf6937db.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1351 - use monotonic timers where possible
Diffstat (limited to 'java/src/IceInternal/OutgoingAsync.java')
-rw-r--r--java/src/IceInternal/OutgoingAsync.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/IceInternal/OutgoingAsync.java b/java/src/IceInternal/OutgoingAsync.java
index fa9e22315d1..8f49c69ac06 100644
--- a/java/src/IceInternal/OutgoingAsync.java
+++ b/java/src/IceInternal/OutgoingAsync.java
@@ -229,7 +229,7 @@ public abstract class OutgoingAsync
//
if(_absoluteTimeoutMillis > 0)
{
- return System.currentTimeMillis() >= _absoluteTimeoutMillis;
+ return IceInternal.Time.currentMonotonicTimeMillis() >= _absoluteTimeoutMillis;
}
else
{
@@ -347,7 +347,7 @@ public abstract class OutgoingAsync
Ice.ConnectionI con = _delegate.__getConnection(comp);
if(con.timeout() >= 0)
{
- _absoluteTimeoutMillis = System.currentTimeMillis() + con.timeout();
+ _absoluteTimeoutMillis = IceInternal.Time.currentMonotonicTimeMillis() + con.timeout();
}
else
{