Sha256: f811784571e3fa82a950b527986ce262001054aa6a7595d7554ed7b0fbf746d8
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
# Written by John Hoffman # see LICENSE.txt for license information from time import * import sys _MAXFORWARD = 100 _FUDGE = 1 class RelativeTime: def __init__(self): self.time = time() self.offset = 0 def get_time(self): t = time() + self.offset if t < self.time or t > self.time + _MAXFORWARD: self.time += _FUDGE self.offset += self.time - t return self.time self.time = t return t if sys.platform != 'win32': _RTIME = RelativeTime() def clock(): return _RTIME.get_time()
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
murder-0.1.2 | dist/BitTornado/clock.py |
murder-0.1.1 | dist/BitTornado/clock.py |
murder-0.1.0 | dist/BitTornado/clock.py |
murder-0.0.0.pre | dist/BitTornado/clock.py |