Time + fame backward compatible with previous 0.8.1

This commit is contained in:
Wiktor Mazur
2020-03-02 21:53:07 +01:00
parent 6720adc78b
commit cffca90288
6 changed files with 131 additions and 36 deletions
+4 -1
View File
@@ -10,5 +10,8 @@ def delta(time):
return (delta.seconds * 1000.0 + delta.microseconds / 1000.0)
def as_milliseconds(time):
return time * 1000.0
def as_seconds(time):
return time * 1000.0
return int(time / 1000.0)