Changes in src/benchmark/bench.h [7286a40:dbe7756]
- File:
-
- 1 edited
-
src/benchmark/bench.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench.h
r7286a40 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.