Changeset 9d32bc8


Ignore:
Timestamp:
May 2, 2018, 5:36:57 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
b68fc85
Parents:
161cdf1
Message:

Fixed benchmarks for non-cforall code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/bench.h

    r161cdf1 r9d32bc8  
    66        #include <stdlib.h>
    77        #include <unistd.h>                                     // sysconf
    8 #if defined(__cforall)
     8#if ! defined(__cforall)
     9        #include <time.h>
     10        #include <sys/time.h>
     11#else
    912}
    1013#include <time>
     
    3942        }                                               \
    4043        long long int StartTime, EndTime;       \
    41         StartTime = bench_time();                       \
     44        StartTime = bench_time();               \
    4245        statement;                                      \
    43         EndTime = bench_time();                         \
     46        EndTime = bench_time();                 \
    4447        unsigned long long int output =         \
    4548        ( EndTime - StartTime ) / n;
    4649
     50#if defined(__cforall)
    4751Duration default_preemption() {
    4852        return 0;
    4953}
     54#endif
Note: See TracChangeset for help on using the changeset viewer.