#include #include "bench.h" _Monitor MyMonitor { public: void __attribute__((noinline)) call() {} }; int main(int argc, char* argv[]) { MyMonitor m; BENCH( for (size_t i = 0; i < n; i++) { m.call(); }, result ) printf("%g\n", result); }