summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-05-04 20:09:50 +0000
committerMark Spruiell <mes@zeroc.com>2005-05-04 20:09:50 +0000
commit407e2956d76470d31614975b7c7f14e79f898316 (patch)
tree57cec38332b3a5a4eeec04fcbd99a2e2ee6b8bb3 /py
parentminor edits (diff)
downloadice-407e2956d76470d31614975b7c7f14e79f898316.tar.bz2
ice-407e2956d76470d31614975b7c7f14e79f898316.tar.xz
ice-407e2956d76470d31614975b7c7f14e79f898316.zip
use time.time() instead of time.clock()
Diffstat (limited to 'py')
-rw-r--r--py/demo/Ice/session/Server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/demo/Ice/session/Server.py b/py/demo/Ice/session/Server.py
index 57c011585e8..7c350470637 100644
--- a/py/demo/Ice/session/Server.py
+++ b/py/demo/Ice/session/Server.py
@@ -24,7 +24,7 @@ class HelloI(Demo.Hello):
class SessionI(Demo.Session):
def __init__(self, name):
- self._timestamp = time.clock()
+ self._timestamp = time.time()
self._name = name
self._lock = threading.Lock()
self._destroy = False # true if destroy() was called, false otherwise.
@@ -51,7 +51,7 @@ class SessionI(Demo.Session):
try:
if self._destroy:
raise Ice.ObjectNotExistException()
- self._timestamp = time.clock()
+ self._timestamp = time.time()
finally:
self._lock.release()
@@ -118,7 +118,7 @@ class ReapThread(threading.Thread):
# real-world example. Therefore the current time
# is computed for each iteration.
#
- if (time.clock() - p.session.timestamp()) > self._timeout:
+ if (time.time() - p.session.timestamp()) > self._timeout:
name = p.proxy.getName()
p.proxy.destroy()
print "The session " + name + " has timed out."