On Tue, Mar 13, 2012 at 5:29 PM, Victor Stinner <victor.stin...@gmail.com> wrote: > I suppose that you can use a manual fallback to time.time() if > time.monotonic() failed. If time.monotonic() fails, it fails directly at the > first call. Example of a fallback working with Python < 3.3: > > try: > time.monotonic() > except (OSError, AttributeError): > get_time = time.time > else: > get_time = time.monotonic >
I like 'fallback' solution while `get_time` is not the best name for high precision timer from my perspective. Can you call it `monotonic` or `realtime`? _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com