Yes there is a complete timer mechanisim in Linux, and these timers even give more accuracy then in milliseconds. In the begining i found these timers a little difficult so i used the threads to simulate timers, So it is also an option to implement the timers using threads, and nanosleep() function.
|