mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Enhance get stuck
This commit is contained in:
@@ -122,6 +122,17 @@ class Timer:
|
||||
self._current = time.time()
|
||||
self._reach_count = 0
|
||||
|
||||
def reached_and_reset(self):
|
||||
"""
|
||||
Returns:
|
||||
bool:
|
||||
"""
|
||||
if self.reached():
|
||||
self.reset()
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def wait(self):
|
||||
"""
|
||||
Wait until timer reached.
|
||||
|
||||
Reference in New Issue
Block a user