Code Snippets C

#include
#include
int main()
{
time_t start;
time_t current;
time(&start);
printf("delay for 5 seconds.\n");
do{
time(¤t);
}while(difftime(current,start) < 5.0);
printf("Finished delay.\n");
return 0;
}