diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-11 15:15:43 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-11 15:15:43 -0500 |
commit | 54ff464bf97bf4b3dc26412979ce9ab5c90e308e (patch) | |
tree | 41a51ab6e630c7039dfa0ee16482f7a4e4c8f994 /loop.c | |
parent | c3bfcd6e766598dc16997abcd4e1f89d9c3754c9 (diff) |
Diffstat (limited to 'loop.c')
-rw-r--r-- | loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -89,8 +89,8 @@ int main(int argc, char** argv) | |||
89 | start = wctime(); | 89 | start = wctime(); |
90 | waste_time(delay); | 90 | waste_time(delay); |
91 | end = wctime(); | 91 | end = wctime(); |
92 | printf("%d: loop %d took %.2f seconds \n", | 92 | printf("%5d on P%d: loop %d took %.2f seconds \n", |
93 | getpid(), i++, end - start); | 93 | getpid(), cpu, i++, end - start); |
94 | suspend(delay * 4); /* about 20% utilization */ | 94 | suspend(delay * 4); /* about 20% utilization */ |
95 | } | 95 | } |
96 | return 0; | 96 | return 0; |