Lines Matching defs:timer
110 /** Initializes a timer.
111 * @param timer - pointer to the timer to start
114 static void u12io_StartTimer( TimerDef *timer , unsigned long us )
119 *timer = start_time.tv_sec * 1e6 + start_time.tv_usec + us;
122 /** Checks if a timer has been expired or not.
123 * @param timer - pointer to the timer to check
124 * @return Function returns SANE_TRUE when the timer has been expired,
127 static SANE_Bool u12io_CheckTimer( TimerDef *timer )
133 if((current_time.tv_sec * 1e6 + current_time.tv_usec) > *timer )
685 TimerDef timer;
699 u12io_StartTimer( &timer, (_SECOND/2));
705 while( !u12io_CheckTimer(&timer));
823 TimerDef timer;
827 u12io_StartTimer( &timer, _SECOND );
843 } while( !u12io_CheckTimer( &timer ));