Appendix A Watchdog Timer Demo Program A-81
mydelay();
run_time=run_time+1;
/* Display time elapsed */
gotoxy(45,11);printf(%2d.%1d sec",run_time/
10,run_time%10);
}
}
/* USER FUNCTION LIBRARY */ void mydelay(void) /*
Delay program: */ /* Delay 109.89ms (18.2Hz*2) */{
clock_t start,end;
start=clock();
end=start;
while((end-start)<2){
end=clock();
}
}