RobvanLopik
04/03/2023, 2:08 PMmain:
t0 := Time.monotonic_us
1000.repeat:
sleep --ms=1
print (Time.monotonic_us - t0)
results in ~9800 instead of 1000. Increasing the sleep time makes the discrepancy go away.
sleep --ms=0
does not take extra time.
I found this because the stepper motor seemed much to slowfloitsch
04/03/2023, 2:47 PMRobvanLopik
04/03/2023, 3:07 PMfloitsch
04/03/2023, 3:08 PMRobvanLopik
04/03/2023, 3:13 PMfloitsch
04/03/2023, 3:14 PMfloitsch
04/03/2023, 3:17 PMend := Time.monotonic_us + 10_000
while end > Time.monotonic_us: yield
RobvanLopik
04/03/2023, 4:14 PMkasperl
04/03/2023, 5:36 PMkasperl
04/03/2023, 5:37 PMkasperl
04/03/2023, 5:38 PMkasperl
04/03/2023, 5:40 PMkasperl
04/03/2023, 5:56 PMRobvanLopik
04/03/2023, 6:04 PMkasperl
04/03/2023, 6:05 PMRobvanLopik
04/03/2023, 7:11 PMkasperl
04/03/2023, 7:20 PMkasperl
04/03/2023, 7:22 PM