gmio/benchs/commons/bench_tools.h

18 lines
300 B
C
Raw Normal View History

2013-02-20 19:29:34 +08:00
#ifndef BENCH_TOOLS_H
#define BENCH_TOOLS_H
#include <time.h>
#include <gmio_core/global.h>
GMIO_C_LINKAGE_BEGIN
2013-02-20 19:29:34 +08:00
float elapsed_secs(clock_t start_tick);
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 */