Changeset 9d32bc8
- Timestamp:
- May 2, 2018, 5:36:57 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- b68fc85
- Parents:
- 161cdf1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/benchmark/bench.h ¶
r161cdf1 r9d32bc8 6 6 #include <stdlib.h> 7 7 #include <unistd.h> // sysconf 8 #if defined(__cforall) 8 #if ! defined(__cforall) 9 #include <time.h> 10 #include <sys/time.h> 11 #else 9 12 } 10 13 #include <time> … … 39 42 } \ 40 43 long long int StartTime, EndTime; \ 41 StartTime = bench_time(); 44 StartTime = bench_time(); \ 42 45 statement; \ 43 EndTime = bench_time(); 46 EndTime = bench_time(); \ 44 47 unsigned long long int output = \ 45 48 ( EndTime - StartTime ) / n; 46 49 50 #if defined(__cforall) 47 51 Duration default_preemption() { 48 52 return 0; 49 53 } 54 #endif
Note: See TracChangeset
for help on using the changeset viewer.