diff options
Diffstat (limited to 'bin/null_call.c')
-rw-r--r-- | bin/null_call.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/null_call.c b/bin/null_call.c index 94ba866..d714e77 100644 --- a/bin/null_call.c +++ b/bin/null_call.c | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <math.h> | 5 | #include <math.h> |
6 | 6 | ||
7 | #include "litmus.h" | 7 | #include "litmus.h" |
8 | #include "cycles.h" | ||
9 | 8 | ||
10 | static void time_null_call(void) | 9 | static void time_null_call(void) |
11 | { | 10 | { |
@@ -49,6 +48,8 @@ int main(int argc, char **argv) | |||
49 | "%lus and %luns.\n", | 48 | "%lus and %luns.\n", |
50 | (unsigned long) sleep_time.tv_sec, | 49 | (unsigned long) sleep_time.tv_sec, |
51 | (unsigned long) sleep_time.tv_nsec); | 50 | (unsigned long) sleep_time.tv_nsec); |
51 | fprintf(stderr, "%10s, %10s, %10s, %10s, %10s, %10s\n", | ||
52 | "pre", "in kernel", "post", "entry", "exit", "total"); | ||
52 | do { | 53 | do { |
53 | time_null_call(); | 54 | time_null_call(); |
54 | } while (nanosleep(&sleep_time, NULL) == 0); | 55 | } while (nanosleep(&sleep_time, NULL) == 0); |