facebook/tornado — pull request #583 by apenwarr (2012-08-14 03:29:46+00:00)
Title: Use time.monotonic() where available.

This patch changes tornado to use time.monotonic() wherever it can, rather than time.time(). This allows it to survive better when the normal clock jumps around (because of NTP or other reasons).

time.monotonic() is part of python 3.3, but you can also get my implementation for earlier versions from here: http://pypi.python.org/pypi/Monotime/ . This patch causes tornado to try that implementation if time.monotonic() is not otherwise available.