turbonss/src/cmph_benchmark.h

21 lines
387 B
C
Raw Normal View History

2011-01-24 14:29:22 +02:00
#ifndef __CMPH_BENCHMARK_H__
#define __CMPH_BENCHMARK_H__
#include <sys/time.h>
#include <sys/resource.h>
#ifdef __cplusplus
extern "C"
{
#endif
2011-02-14 00:40:26 +02:00
#define BM_REGISTER(func, iters) bm_register(#func, func, iters)
2011-01-24 14:29:22 +02:00
void bm_register(const char* name, void (*func)(int), int iters);
void run_benchmarks(int argc, char** argv);
#ifdef __cplusplus
}
#endif
#endif // __CMPH_BENCHMARK_H__