Lines Matching defs:time
6 immediately or at a given time in the future.
27 import time
400 self._clock_resolution = time.get_clock_info('monotonic').resolution
700 def time(self):
701 """Return the time according to the event loop's clock.
707 return time.monotonic()
710 """Arrange for a callback to be called at a given time.
716 always relative to the current time.
719 are scheduled for exactly the same time, it undefined which
727 timer = self.call_at(self.time() + delay, callback, *args,
734 """Like call_later(), but uses an absolute time.
736 Absolute time corresponds to the event loop's time() method.
849 t0 = self.time()
851 dt = self.time() - t0
1043 'host/port and sock can not be specified at the same time')
1475 'host/port and sock can not be specified at the same time')
1882 timeout = min(max(0, when - self.time()), MAXIMUM_SELECT_TIMEOUT)
1890 end_time = self.time() + self._clock_resolution
1902 # callbacks scheduled by callbacks run this time around --
1903 # they will be run the next time (after another I/O poll).
1913 t0 = self.time()
1915 dt = self.time() - t0