2013-02-20 19:29:34 +08:00
|
|
|
#ifndef BENCH_TOOLS_H
|
|
|
|
#define BENCH_TOOLS_H
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
2015-03-24 01:31:10 +08:00
|
|
|
#include <gmio_core/global.h>
|
|
|
|
|
|
|
|
GMIO_C_LINKAGE_BEGIN
|
|
|
|
|
2013-02-20 19:29:34 +08:00
|
|
|
float elapsed_secs(clock_t start_tick);
|
|
|
|
|
2015-03-24 01:31:10 +08:00
|
|
|
void benchmark(
|
|
|
|
void (*func)(const char*), const char* title, int argc, char** argv);
|
|
|
|
|
|
|
|
GMIO_C_LINKAGE_END
|
2013-02-20 19:29:34 +08:00
|
|
|
|
|
|
|
#endif /* BENCH_TOOLS_H */
|