time.time faster than loop.time?

This commit is contained in:
Channel Cat 2016-10-28 03:13:03 -07:00
parent bd28da0abc
commit c44b5551bc

View File

@ -2,6 +2,7 @@ import asyncio
from functools import partial from functools import partial
from inspect import isawaitable from inspect import isawaitable
from signal import SIGINT, SIGTERM from signal import SIGINT, SIGTERM
from time import time
import httptools import httptools
@ -180,8 +181,8 @@ def update_current_time(loop):
:return: :return:
""" """
global current_time global current_time
current_time = loop.time() current_time = time()
loop.call_later(0.5, partial(update_current_time, loop)) loop.call_later(1, partial(update_current_time, loop))
def trigger_events(events, loop): def trigger_events(events, loop):