Updated archtecture, fixed dependencies

This commit is contained in:
Nick Bifle 2023-04-16 12:51:26 +03:00
parent 5ed98994e9
commit 964d25de86
179 changed files with 609 additions and 1365 deletions

View file

@ -1,15 +0,0 @@
import time
def sleep(duration, get_now=time.perf_counter):
"""
Custom sleep function that works more accurate then time.sleep does.
Taken from: https://stackoverflow.com/a/60185893/3684575
:param duration: Duration to sleep (in seconds).
:param get_now: Function to retrieve current time (time.perf_counter by default)
:return:
"""
now = get_now()
end = now + duration
while now < end:
now = get_now()