Changeset 399a908 for src


Ignore:
Timestamp:
Apr 30, 2018, 2:30:32 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

Fixed benchmarks

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/bench.h

    r5527759 r399a908  
    66        #include <stdlib.h>
    77        #include <unistd.h>                                     // sysconf
    8         #include <sys/times.h>                                  // times
    9         #include <time.h>
    108#if defined(__cforall)
    119}
    12 //#include <bits/cfatime.h>
     10#include <time>
    1311#endif
    1412
    1513
    16 static inline unsigned long long int Time() {
     14static inline unsigned long long int bench_time() {
    1715    struct timespec ts;
    1816    clock_gettime(
     
    4139        }                                               \
    4240        long long int StartTime, EndTime;       \
    43         StartTime = Time();                     \
     41        StartTime = bench_time();                       \
    4442        statement;                                      \
    45         EndTime = Time();                               \
     43        EndTime = bench_time();                         \
    4644        unsigned long long int output =         \
    4745        ( EndTime - StartTime ) / n;
    4846
    49 __cfa_time_t default_preemption() {
     47Duration default_preemption() {
    5048        return 0;
    5149}
  • src/benchmark/ctxswitch/cfa_cor.c

    r5527759 r399a908  
    11#include <stdio.h>
     2#include <kernel>
    23#include <thread>
    34
  • src/libcfa/concurrency/thread

    r5527759 r399a908  
    2020
    2121#include "coroutine"
     22#include "kernel"
    2223#include "monitor"
    2324
Note: See TracChangeset for help on using the changeset viewer.