mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
This method was new in Tornado 4.0. It saves us from having to get the time ourselves and do the arithmetic -- which not only makes the code a bit shorter, but also easier to get right. Tornado docs (see http://www.tornadoweb.org/en/stable/ioloop.html) say we should have been getting the time from `ioloop.time()` rather than hardcoding `time.time()`, because the loop could e.g. be running on the `time.monotonic()` clock.
14 KiB
Executable File
14 KiB
Executable File