Changeset dbe7756 for src/benchmark/bench.h
- Timestamp:
- Sep 22, 2017, 3:39:13 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:
- e2f7bc3
- Parents:
- a843067
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench.h
ra843067 rdbe7756 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 14 static inline unsigned long long int Time() { 15 struct timespec ts; 11 16 clock_gettime( 12 17 #if defined( __linux__ )
Note: See TracChangeset
for help on using the changeset viewer.