diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-30 16:34:34 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-30 16:34:34 -0400 |
commit | b28042b22a9d10ac0ad22d672d5db820be69c734 (patch) | |
tree | 1e07227d07a61124677a01444305527c0158f614 | |
parent | f679d50c1fed4b0129eb417eff8717bf1c9eab3c (diff) |
Switched queue overhead times to microseconds.wip-color
-rw-r--r-- | src/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -120,6 +120,8 @@ static void print_param(struct st_event_record* rec) | |||
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | #define NSEC_PER_USEC 1000.0 | ||
124 | |||
123 | static void print_time_data1(struct st_event_record* rec) | 125 | static void print_time_data1(struct st_event_record* rec) |
124 | { | 126 | { |
125 | u32* data = &rec->data; | 127 | u32* data = &rec->data; |
@@ -132,8 +134,8 @@ static void print_time_data1(struct st_event_record* rec) | |||
132 | u32 flush_time = data[2]; | 134 | u32 flush_time = data[2]; |
133 | u32 load_time = data[3]; | 135 | u32 load_time = data[3]; |
134 | printf("exec: %6.2fms, flush: %6.2fms, flush_work: %6d, load: %6.2fms, load_work: %6d\n", | 136 | printf("exec: %6.2fms, flush: %6.2fms, flush_work: %6d, load: %6.2fms, load_work: %6d\n", |
135 | exec / NSEC_PER_MSEC, flush_time / NSEC_PER_MSEC, | 137 | exec / NSEC_PER_MSEC, flush_time / NSEC_PER_USEC, |
136 | flush_work, load_time / NSEC_PER_MSEC, load_work); | 138 | flush_work, load_time / NSEC_PER_USEC, load_work); |
137 | } | 139 | } |
138 | 140 | ||
139 | static void print_time_data2(struct st_event_record* rec) | 141 | static void print_time_data2(struct st_event_record* rec) |