Loops/timers in C

前端 未结 7 1580
忘了有多久
忘了有多久 2020-12-09 06:05

How does one create a timer in C?

I want a piece of code to continuously fetch data from a gps parsers output.

Are there good libraries for this or should it

7条回答
  •  时光取名叫无心
    2020-12-09 06:37

    If your using Windows, you can use SetTimer,else you can build a timer out of timeGetTime and _beginthreadex along with a queue of timers with callbacks

提交回复
热议问题