diff options
Diffstat (limited to 'Lib/lib-stdwin')
-rw-r--r-- | Lib/lib-stdwin/WindowSched.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-stdwin/WindowSched.py b/Lib/lib-stdwin/WindowSched.py index b2fbe76..119a41f 100644 --- a/Lib/lib-stdwin/WindowSched.py +++ b/Lib/lib-stdwin/WindowSched.py @@ -11,6 +11,7 @@ import time # Return immediately when something is done, or when the delay is up. # def delayfunc(msecs): + msecs = int(msecs) # # Check for immediate stdwin event # @@ -36,7 +37,7 @@ def delayfunc(msecs): mainloop.dispatch(event) def millitimer(): - return int(1000 * time.time()) + return time.time() * 1000 q = sched.scheduler(millitimer, delayfunc) |