#include #include #include int main() { unsigned int tdelay = 10; unsigned long curtime; unsigned long prevtime; time_t sec; prevtime = time(&sec); int swi = 0; while (1) { if (swi == 0) { printf("we are here\n"); swi = 1; } curtime = time(&sec); if (curtime - prevtime >= tdelay) { printf("Block\n"); prevtime = time(&sec); } } }