refactor: enhance Timer class with improved timing methods and access count tracking

This commit is contained in:
2026-07-06 22:41:00 +08:00
parent 0c6c866142
commit d033dd17c7
2 changed files with 121 additions and 89 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class Control(Hermit, Minitouch, Scrcpy, MaaTouch, NemuIpc):
self.handle_control_check(button)
click_timer = Timer(0.1)
for _ in range(n):
remain = ensure_time(interval) - click_timer.current()
remain = ensure_time(interval) - click_timer.current_time()
if remain > 0:
self.sleep(remain)
click_timer.reset()