]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/pages/torrent/client/clock.py
Initial checkin.
[ipfire.org.git] / www / pages / torrent / client / clock.py
diff --git a/www/pages/torrent/client/clock.py b/www/pages/torrent/client/clock.py
deleted file mode 100644 (file)
index e42c59b..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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()
\ No newline at end of file