keypair: do selftest before generating and verifying keypair
[netsniff-ng.git] / timer.c
blob8941ab70fff5d2df1c796f172529c61062b23937
1 #include <sys/time.h>
3 #include "timer.h"
5 void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
6 unsigned long usec)
8 itimer->it_interval.tv_sec = sec;
9 itimer->it_interval.tv_usec = usec;
11 itimer->it_value.tv_sec = sec;
12 itimer->it_value.tv_usec = usec;