Sleep Function Error In C

前端 未结 5 1269
眼角桃花
眼角桃花 2021-01-21 03:03

I have a file of data Dump, in with different timestamped data available, I get the time from timestamp and sleep my c thread for that time. But the problem is that The actual t

5条回答
  •  庸人自扰
    2021-01-21 03:18

    The sleep function will sleep for at least as long as the time you specify, but there is no guarantee that it won't sleep for longer.If you need an accurate interval, you will need to use some other mechanism.

提交回复
热议问题