Commit Graph

5 Commits

Author SHA1 Message Date
05dbc470ad Cleanup: warnings & style 2016-01-28 17:23:12 +11:00
e5e7507d31 PIL_time_utiledefines: add TIMEIT_AVERAGED variants to block timing macros.
This variant behave exactly as TIMEIT_START etc., but it also sums up all times in
a static var and prints out average execution time - very useful when dealing
with small/quick pieces of code that get executed often, to get some meaningful results.
2016-01-27 12:26:00 +01:00
8be4c6e8f3 Timing macros: remove the (void)0 at the end of TIMEIT_BLOCK_INIT,
it prevents declaring/using more than one of these timing blocks in a same code block
(C rule, no var declaration and code mixing)...
2014-01-21 15:50:44 +01:00
dd02c2937a Made PIL_time_utildefines self-sufficient
Meaning it's enough to only include PIL_time_utildefines for
benchmarking, no need to worry about other header dependencies.
2013-09-26 21:27:23 +00:00
0994e7f96f move timeit macros into their own include, since they are only used for testing and unrelated to PIL_time.h typical use. 2013-09-03 21:22:43 +00:00