- Timestamp:
- Apr 30, 2018, 2:30:32 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:
- 5248789
- Parents:
- 5527759
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench.h
r5527759 r399a908 6 6 #include <stdlib.h> 7 7 #include <unistd.h> // sysconf 8 #include <sys/times.h> // times9 #include <time.h>10 8 #if defined(__cforall) 11 9 } 12 //#include <bits/cfatime.h>10 #include <time> 13 11 #endif 14 12 15 13 16 static inline unsigned long long int Time() {14 static inline unsigned long long int bench_time() { 17 15 struct timespec ts; 18 16 clock_gettime( … … 41 39 } \ 42 40 long long int StartTime, EndTime; \ 43 StartTime = Time(); \41 StartTime = bench_time(); \ 44 42 statement; \ 45 EndTime = Time(); \43 EndTime = bench_time(); \ 46 44 unsigned long long int output = \ 47 45 ( EndTime - StartTime ) / n; 48 46 49 __cfa_time_tdefault_preemption() {47 Duration default_preemption() { 50 48 return 0; 51 49 } -
src/benchmark/ctxswitch/cfa_cor.c
r5527759 r399a908 1 1 #include <stdio.h> 2 #include <kernel> 2 3 #include <thread> 3 4 -
src/libcfa/concurrency/thread
r5527759 r399a908 20 20 21 21 #include "coroutine" 22 #include "kernel" 22 23 #include "monitor" 23 24
Note: See TracChangeset
for help on using the changeset viewer.