Lines Matching refs:timer
209 // We use a timer to determine the status of the tunnel. It
212 int timer = 0;
229 if (timer < 1) {
230 timer = 1;
250 if (timer > 0) {
251 timer = 0;
260 // Increase the timer. This is inaccurate but good enough,
262 timer += (timer > 0) ? 100 : -100;
266 if (timer < -16000) {
274 timer = 1;
278 if (timer > 20000) {