diff -r f6199284ef3a Lib/queue.py --- a/Lib/queue.py Wed Mar 14 00:40:57 2012 +0100 +++ b/Lib/queue.py Wed Mar 14 01:52:29 2012 +0100 @@ -6,7 +6,11 @@ except ImportError: import dummy_threading as threading from collections import deque from heapq import heappush, heappop -from time import time +try: + from time import monotonic as time + time() +except (ImportError, OSError): + from time import time __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']