0

How can i make a microsecond delay in python?

python

30th Nov 2017, 8:29 AM
hossein
hossein - avatar
3 Antworten
+ 1
import time and use time.sleep(mili / 1000)
30th Nov 2017, 9:26 AM
Mphj
Mphj - avatar
+ 1
it doesn't have enough accuracy for us. it adds 80 micro seconds in each iteration.
30th Nov 2017, 9:51 AM
hossein
hossein - avatar
0
I'm struggling to with that problem. I need 1.9µs sleep. But after days of research I discovert that it's not possible to sleep that short... on a Raspberry I managed to sleep 5.4µs when I sleep(1.9e-7) -> factor 20
11th Jun 2018, 10:54 AM
Philipp Klimek
Philipp Klimek - avatar