Skip to content
Snippets Groups Projects
Commit db577eb5 authored by Peter Braam's avatar Peter Braam
Browse files

- add something that prints the time every 10,000 creates

parent 439efc3b
No related branches found
No related tags found
No related merge requests found
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
...@@ -33,6 +34,8 @@ int main(int argc, char ** argv) ...@@ -33,6 +34,8 @@ int main(int argc, char ** argv)
filename, strerror(errno)); filename, strerror(errno));
break; break;
} }
if ( (i%10000) == 0 )
printf(" - created %d (time %d)\n", i, time(0));
} }
return rc; return rc;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment