Categories




Difftime example

This shows the difftime function and in this case we will pause our program for 5 seconds with it

#include <stdio.h>
#include <time.h>

int main()

{
time_t start;
time_t current;
time(&start);
printf(“delay for 5 seconds.\n”);
do{
time(&current);
}while(difftime(current,start) < 5.0);

printf(“Finished delay.\n”);

return 0;
}

Bookmark It

Hide Sites

$$(‘div.d131′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });