Python tornado.options.options 模块,ioloop_time_monotonic() 实例源码

我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用tornado.options.options.ioloop_time_monotonic()

项目:annotated-py-tornado    作者:hhstore    | 项目源码 | 文件源码
def configure_ioloop():
        kwargs = {}
        if options.ioloop_time_monotonic:
            from tornado.platform.auto import monotonic_time
            if monotonic_time is None:
                raise RuntimeError("monotonic clock not found")
            kwargs['time_func'] = monotonic_time
        if options.ioloop or kwargs:
            IOLoop.configure(options.ioloop, **kwargs)
项目:get_started_with_respeaker    作者:respeaker    | 项目源码 | 文件源码
def configure_ioloop():
        kwargs = {}
        if options.ioloop_time_monotonic:
            from tornado.platform.auto import monotonic_time
            if monotonic_time is None:
                raise RuntimeError("monotonic clock not found")
            kwargs['time_func'] = monotonic_time
        if options.ioloop or kwargs:
            IOLoop.configure(options.ioloop, **kwargs)