Changeset 0b84b15 for benchmark/readyQ/rq_bench.hfa
- Timestamp:
- Oct 29, 2020, 3:33:45 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 93068e53
- Parents:
- b35ab2d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/rq_bench.hfa
rb35ab2d r0b84b15 17 17 volatile unsigned long long threads_left; 18 18 19 #define thread_loop for(this.count = 0; this.count < stop_count && !stop; this.count++)19 #define thread_loop for(this.count = 0;; this.count++) 20 20 21 21 #define BENCH_OPT \ … … 36 36 clock_mode = true; \ 37 37 stop_count = 0xFFFFFFFFFFFFFFFF; \ 38 printf("Running for %lf seconds\n", duration); \ 38 39 } else if(stop_count > 0) { \ 39 40 clock_mode = false; \ 41 printf("Running for %lu iterations\n", stop_count); \ 40 42 } else { \ 41 43 duration = 5; clock_mode = true;\ 44 printf("Running for %lf seconds\n", duration); \ 42 45 } \ 43 46 } … … 67 70 } 68 71 69 void wait( Time & start, Time & end, bool is_tty) {72 void wait(const Time & start, bool is_tty) { 70 73 for() { 71 74 sleep(100`ms); 72 end = getTimeNsec();75 Time end = getTimeNsec(); 73 76 Duration delta = end - start; 74 77 if(is_tty) {
Note: See TracChangeset
for help on using the changeset viewer.