Changeset d67cdb7 for src/benchmark/bench.h
- Timestamp:
- Sep 26, 2017, 11:27:38 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, resolv-new, with_gc
- Children:
- 5dc26f5
- Parents:
- 201aeb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench.h
r201aeb9 rd67cdb7 1 1 #pragma once 2 2 3 #ifdef __CFORALL__ 3 4 extern "C" { 5 #endif 4 6 #include <unistd.h> // sysconf 5 7 #include <sys/times.h> // times 6 8 #include <time.h> 9 #ifdef __CFORALL__ 7 10 } 11 #endif 8 12 9 inline unsigned long long int Time() {10 timespec ts;13 static inline unsigned long long int Time() { 14 struct timespec ts; 11 15 clock_gettime( 12 16 #if defined( __linux__ )
Note: See TracChangeset
for help on using the changeset viewer.