Files
test/source
Sergey Sharybin 82570cbd47 Utility benchmarking macros
This new macros could be used to benchmark overall
execution time of some chunk of code, running in cycle.

The usage is:

  void foo(void) {
    TIMEIT_BLOCK_INIT(overall_bar);

    for (...) {
      ...

      TIMEIT_BLOCK_BEGIN(over_bar);
      bar();
      TIMEIT_BLOCK_END(oberall_bar);

      ...
    }

    TIMEIT_BLOCK_STATS(overall_bar)
  }

This would print total time which was spent on
running function bar().
2013-07-15 19:17:45 +00:00
..
2013-07-15 19:17:45 +00:00
2012-12-17 08:01:43 +00:00
2012-12-17 08:01:43 +00:00