Loops/timers in C

前端 未结 7 1604
忘了有多久
忘了有多久 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:42

    SDL provides a cross platform timer in C.

    http://www.libsdl.org/cgi/docwiki.cgi/SDL_AddTimer

提交回复
热议问题