Ignore:
Timestamp:
Sep 26, 2017, 5:15:13 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, resolv-new, with_gc
Children:
74bba15
Parents:
8d722cc
Message:

updated benchmark to have pthread context switch and new reference syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/bench.h

    r8d722cc raf58ee0  
    11#pragma once
    22
     3#ifdef __CFORALL__
    34extern "C" {
     5#endif
    46        #include <unistd.h>                                     // sysconf
    57        #include <sys/times.h>                                  // times
    68        #include <time.h>
     9#ifdef __CFORALL__
    710}
     11#endif
    812
    913inline unsigned long long int Time() {
    10     timespec ts;
     14    struct timespec ts;
    1115    clock_gettime(
    1216#if defined( __linux__ )
Note: See TracChangeset for help on using the changeset viewer.