Message28846
On Linux time.clock() is CPU time. And has no bearing at all on real time. On windows time.clock() is real time since CPU time is not available from the operating system.
What if instead of replacing time.time() with time.clock(), the Queue and Event wait loops just kicked out if "remaining time" was larger than the initial wait time? Let the outer loop continue, and the next time wait is called, the "remaining time" will be calculated correctly.
Otherwise, we could compare "remaining time" between one loop iteration and the subsequent and then *approximate* how much the time has changed to adjust the "end time" appropriately.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:40:42 | admin | link | issue1508864 messages |
2007-08-23 14:40:42 | admin | create | |
|