Sleep for exact time in python

前端 未结 7 1484
迷失自我
迷失自我 2020-12-11 17:17

I need to wait for about 25ms in one of my functions. Sometimes this function is called when the processor is occupied with other things and other times it has the processor

7条回答
  •  情书的邮戳
    2020-12-11 17:50

    0.25 seconds are 250 ms, not 25. Apart from this, there is no way to wait for exactly 25 ms on common operating systems – you would need some real-time operating system.

提交回复
热议问题