We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3b9f6 commit 11e6bd7Copy full SHA for 11e6bd7
src/lerobot/utils/robot_utils.py
@@ -17,10 +17,9 @@
17
18
19
def busy_wait(seconds):
20
- if platform.system() == "Darwin":
21
- # On Mac, `time.sleep` is not accurate and we need to use this while loop trick,
+ if platform.system() == "Darwin" or platform.system() == "Windows":
+ # On Mac and Windows, `time.sleep` is not accurate and we need to use this while loop trick,
22
# but it consumes CPU cycles.
23
- # TODO(rcadene): find an alternative: from python 11, time.sleep is precise
24
end_time = time.perf_counter() + seconds
25
while time.perf_counter() < end_time:
26
pass
0 commit comments