Lines Matching refs:time
35 #include <time.h>
1348 srandom(time(NULL));
1567 * test sane_get_device function, if time is greter than 0,
1571 * @param time time to loop
1574 static int test_get_devices(const SANE_Device ***device_list, int time)
1641 /* loop on detecting device to let time to plug/unplug scanners */
1642 while(loop<time) {
1673 printf("Usage: %s [-d backend_name] [-l test_level] [-s] [-r recursion_level] [-g time (s)]\n", execname);
1679 printf("\t-g\ttime to loop on sane_get_devices function to test scannet hotplug detection (time is in seconds).\n");
1695 int time;
1708 time = 0; /* no get devices loop */
1739 time = atoi(optarg);
1812 rc = test_get_devices(&device_list, time);