/* time_test.c see if C time.h time(NULL) is OK */ #include #include int main() { int i; double now; double next; printf("Should be wall time, 5 second intervals \n"); now = (double)time(NULL); next = now+5.0; for(i=0; i<90;) { now = (double)time(NULL); if(now >= next) { printf("%d\n",i); i=i+5; next=next+5.0; } } return 0; }