summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-28 21:36:50 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-28 21:36:50 (GMT)
commit424e4da9f38fe8281cae370936ff266bcbeb0804 (patch)
treeaff3b5bcea92d111fd16740e9ed7848cc7984262 /Demo
parent0efafb39da32880543cd890590a4185b05040479 (diff)
downloadcpython-424e4da9f38fe8281cae370936ff266bcbeb0804.zip
cpython-424e4da9f38fe8281cae370936ff266bcbeb0804.tar.gz
cpython-424e4da9f38fe8281cae370936ff266bcbeb0804.tar.bz2
Rot out all uses of time.milli*().
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/sgi/video/Dsend.py2
-rwxr-xr-xDemo/sgi/video/VFile.py7
-rwxr-xr-xDemo/sgi/video/Vsend.py2
3 files changed, 5 insertions, 6 deletions
diff --git a/Demo/sgi/video/Dsend.py b/Demo/sgi/video/Dsend.py
index c4ed842..da94c6f 100755
--- a/Demo/sgi/video/Dsend.py
+++ b/Demo/sgi/video/Dsend.py
@@ -156,7 +156,7 @@ def main():
rv = lvi.getnextpacket()
if not rv:
- time.millisleep(10)
+ time.sleep(0.010)
continue
pos, data = rv
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index 3cb7506..bb9857f 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -385,7 +385,6 @@ class Displayer(VideoParams):
self.color0 = None # magic, used by clearto()
self.fixcolor0 = 0 # don't need to fix color0
self.mustunpack = (not support_packed_pixels())
- return self
# setinfo() must reset some internal flags
@@ -1184,11 +1183,11 @@ def test():
gl.prefsize(vin.getsize())
wid = gl.winopen(filename)
vin.initcolormap()
- t0 = time.millitimer()
+ t0 = time.time()
while 1:
try: t, data, cdata = vin.getnextframe()
except EOFError: break
- dt = t0 + t - time.millitimer()
- if dt > 0: time.millisleep(dt)
+ dt = t0 + t - time.time()
+ if dt > 0: time.time(dt)
vin.showframe(data, cdata)
time.sleep(2)
diff --git a/Demo/sgi/video/Vsend.py b/Demo/sgi/video/Vsend.py
index cc1e1ca..223bbf3 100755
--- a/Demo/sgi/video/Vsend.py
+++ b/Demo/sgi/video/Vsend.py
@@ -128,7 +128,7 @@ def main():
rv = lvi.getnextpacket()
if not rv:
- time.millisleep(10)
+ time.sleep(0.010)
continue
pos, data = rv