import time from dealy import delay from mouse.logitech import Logitech from poe.start import get_start while True: delay(10) if get_start(): st = time.time() for _ in range(300): delay(100) Logitech.mouse.move(1, 1) print(int((time.time() - st) * 1000), " ms") break