You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
451 B

#ifndef _qi_bench_h_
#define _qi_bench_h_
#include <chrono>
extern std::chrono::duration<double, std::milli> QI_CPU_TIME_MS;
/** Routine for benchmarking with an accuracy
* depending on the host platform.
* Linux machines will benefit from the "getrusage"
* function, with an accuracy in milliseconds.
* Other architectures will simply use the "clock()"
* function, with an accuracy in seconds. */
double qi_bench_cputime (void);
#endif