time for windows

This commit is contained in:
Will McGugan
2022-10-12 13:30:15 +01:00
parent 5fa606cf27
commit 6dceb527a1

View File

@@ -1,4 +1,11 @@
from time import perf_counter
import platform
from time import monotonic, perf_counter
PLATFORM = platform.system()
WINDOWS = PLATFORM == "Windows"
time = perf_counter
if WINDOWS:
time = perf_counter
else:
time = monotonic