Whamcloud - gitweb
- add something that prints the time every 10,000 creates
authorbraam <braam>
Fri, 8 Nov 2002 00:11:51 +0000 (00:11 +0000)
committerbraam <braam>
Fri, 8 Nov 2002 00:11:51 +0000 (00:11 +0000)
lustre/tests/createmany.c

index 27ba3f7..4c3bc2a 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 #include <errno.h>
 #include <string.h>
 #include <fcntl.h>
@@ -33,6 +34,8 @@ int main(int argc, char ** argv)
                                filename, strerror(errno));
                         break;
                 }
+               if ( (i%10000) == 0 )
+                   printf(" - created %d (time %d)\n", i, time(0));
         }
         return rc;
 }