2012年7月26日
摘要: setitimer函数原型int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue));which:ITIMER_REAL: 以系统真实的时间来计算,它送出SIGALRM信号。ITIMER_VIRTUAL: -以该进程在用户态下花费的时间来计算,它送出SIGVTALRM信号。ITIMER_PROF : 以该进程在用户态下和内核态下所费的时间来计算,它送出SIGPROF信号。项目bug例子:/*开启一个1 s 循环的定时器*/void set_timer(){struct itimerval 阅读全文
posted @ 2012-07-26 10:11 代码小白 阅读(431) 评论(0) 推荐(0) 编辑