Changeset 1b20da0 in mainline for uspace/app/rcubench/rcubench.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcubench/rcubench.c
rdf6ded8 r1b20da0 135 135 } 136 136 137 /* 137 /* 138 138 * Run the last thread in place so that we create multiple threads 139 139 * only when needed. Otherwise libc would immediately upgrade … … 193 193 } 194 194 195 static bool parse_cmd_line(int argc, char **argv, bench_t *bench, 195 static bool parse_cmd_line(int argc, char **argv, bench_t *bench, 196 196 const char **err) 197 197 { … … 225 225 *err = "Err: Invalid number of iterations"; 226 226 return false; 227 } 227 } 228 228 229 229 /* Determine thread count. */ … … 236 236 *err = "Err: Invalid number of threads"; 237 237 return false; 238 } 238 } 239 239 240 240 return true; … … 275 275 } 276 276 277 print_res("Completed %" PRIu64 " iterations in %" PRId64 " usecs (%" PRIu64 278 " secs); %" PRIu64 " iters/sec\n", 279 total_iters, duration, secs, iters_per_sec); 277 print_res("Completed %" PRIu64 " iterations in %" PRId64 " usecs (%" PRIu64 278 " secs); %" PRIu64 " iters/sec\n", 279 total_iters, duration, secs, iters_per_sec); 280 280 281 281 close_results();
Note:
See TracChangeset
for help on using the changeset viewer.