13 if (clock_gettime(CLOCK_REALTIME, &time) != 0) {
14 perror("clock_gettime");
18 return (int64_t)(time.tv_sec) * 1000000000 + time.tv_nsec;
23 FILE *f = fopen("writetest", "wb");
30 for (int i = 0; i < 16; i++) {
34 fwrite(buf, 1, sizeof(buf), f);
37 printf("Pass %d: Time = %"PRIi64"\n", i, end - start);
41 int main(int argc, char *argv[])