原创 setitimer函數

setitimer函數爲設置定時器(鬧鐘),可替代alarm函數,比alarm函數精確度更高,精度爲微秒,可以實現週期定時。 函數頭文件爲 #include<sys/time.h> 函數原型爲 int setitimer(int