Lines Matching refs:time
3 #include <sys/time.h>
22 /* time out after 1 sec extra delay */
26 /* measure time for the kevent */
54 test_absolute_kevent(int time, int scale)
67 printf("Testing %d sec absolute timer...\n", time);
71 printf("Testing %d usec absolute timer...\n", time);
75 printf("Testing %d msec absolute timer...\n", time);
83 expected = time * timescale;
84 deadline = nowus / timescale + time;
87 if (time < 0)
101 test_oneshot_kevent(int time, int scale)
109 printf("Testing %d sec interval timer...\n", time);
110 expected = time * (1000 * 1000);
113 printf("Testing %d usec interval timer...\n", time);
114 expected = time;
117 printf("Testing %d nsec interval timer...\n", time);
118 expected = time / 1000;
121 printf("Testing %d msec interval timer...\n", time);
122 expected = time * 1000;
130 if (time < 0)
133 EV_SET64(&kev, 2, EVFILT_TIMER, EV_ADD | EV_ONESHOT, scale, time,