Changeset dbe7756


Ignore:
Timestamp:
Sep 22, 2017, 3:39:13 PM (4 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, resolv-new, with_gc
Children:
e2f7bc3
Parents:
a843067
Message:

bench.h now compiles in C and C++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/bench.h

    ra843067 rdbe7756  
    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
    9 inline unsigned long long int Time() {
    10     timespec ts;
     13
     14static inline unsigned long long int Time() {
     15    struct timespec ts;
    1116    clock_gettime(
    1217#if defined( __linux__ )
Note: See TracChangeset for help on using the changeset viewer.