one more scope for benchmarks

This commit is contained in:
c9s 2014-05-17 07:53:24 +08:00
parent 4572f5cb55
commit 6ff8ff66d1

View file

@ -25,6 +25,7 @@ typedef struct {
#define BENCHMARK(name) \
{ \
bench B; B.N = 5000000; B.R = 3; \
bench_start(&B); \
for (int _r = 0; _r < B.R ; _r++ ) { \
@ -33,7 +34,9 @@ typedef struct {
#define END_BENCHMARK() \
} \
} \
bench_stop(&B);
bench_stop(&B); \
}
long unixtime();