ring: Mark potentially unused parameters as such
[netsniff-ng-new.git] / timer.c
blobc25d5b201ea7a032c8344aff535d503df750e724
1 #include <unistd.h>
2 #include <sys/time.h>
4 #include "timer.h"
6 void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
7 unsigned long usec)
9 itimer->it_interval.tv_sec = sec;
10 itimer->it_interval.tv_usec = usec;
12 itimer->it_value.tv_sec = sec;
13 itimer->it_value.tv_usec = usec;
16 int get_user_hz(void)
18 return sysconf(_SC_CLK_TCK);