How to set a timer in C?# Programming - 葵花宝典
a*r
1 楼
I am programming in C where need a timer to make sure the program will use t
he function periodically.
My present idea is only to use a loop to get time() and calculate, but it lo
oks like very stupid.
My question is how to set the timer in a smart way.
Thanks for your help very much.
he function periodically.
My present idea is only to use a loop to get time() and calculate, but it lo
oks like very stupid.
My question is how to set the timer in a smart way.
Thanks for your help very much.