repo.or.cz
/
netsniff-ng.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
trafgen: keep a small initial ring buffer size to reduce cache-misses
[netsniff-ng.git]
/
timer.c
blob
8941ab70fff5d2df1c796f172529c61062b23937
1
#include <sys/time.h>
2
3
#include
"timer.h"
4
5
void
set_itimer_interval_value
(
struct
itimerval
*
itimer
,
unsigned long
sec
,
6
unsigned long
usec
)
7
{
8
itimer
->
it_interval
.
tv_sec
=
sec
;
9
itimer
->
it_interval
.
tv_usec
=
usec
;
10
11
itimer
->
it_value
.
tv_sec
=
sec
;
12
itimer
->
it_value
.
tv_usec
=
usec
;
13
}