Changes in src/benchmark/bench.h [dbe7756:7286a40]
- File:
-
- 1 edited
-
src/benchmark/bench.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench.h
rdbe7756 r7286a40 1 1 #pragma once 2 2 3 #ifdef __CFORALL__4 3 extern "C" { 5 #endif6 4 #include <unistd.h> // sysconf 7 5 #include <sys/times.h> // times 8 6 #include <time.h> 9 #ifdef __CFORALL__10 7 } 11 #endif12 8 13 14 static inline unsigned long long int Time() { 15 struct timespec ts; 9 inline unsigned long long int Time() { 10 timespec ts; 16 11 clock_gettime( 17 12 #if defined( __linux__ )
Note:
See TracChangeset
for help on using the changeset viewer.