mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
time for windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user