Damage backward compatible with previous 0.8.1

This commit is contained in:
Wiktor Mazur
2020-03-01 20:24:57 +01:00
parent 133975cd77
commit 6720adc78b
10 changed files with 371 additions and 107 deletions
+14
View File
@@ -0,0 +1,14 @@
from datetime import datetime
def now():
return datetime.now()
def delta(time):
delta = datetime.now() - time
return (delta.seconds * 1000.0 + delta.microseconds / 1000.0)
def as_seconds(time):
return time * 1000.0