/* * @(#)nstat.c 1.2 98/10/26 Connectathon Testsuite * 1.3 Lachman ONC Test Suite source * * Stat a file n times */ #if defined (DOS) || defined (WIN32) #define DOSorWIN32 #endif #ifndef DOSorWIN32 #include #include #include #include #include #ifdef SVR3 #include #else #include #endif #endif /* DOSorWIN32 */ #include "../tests.h" static int stats = 0; main(argc, argv) int argc; char *argv[]; { struct timeval etim; float elapsed; register int count; register int i; struct stat statb; if (argc != 2) { fprintf(stderr, "usage: %s count\n", argv[0]); exit(1); } count = atoi(argv[1]); starttime(); for (i=0; i