PIL_time_utiledefines: add TIMEIT_AVERAGED variants to block timing macros.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 27 Jan 2016 10:48:30 +0000 (11:48 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 27 Jan 2016 11:26:00 +0000 (12:26 +0100)
commite5e7507d31e8ae817231c4189fe0602ebce4003f
treec8d89abd5c3d466819cbecdfc1ac093b0f6a4250
parent7e9103b49c6bdadc0c72fa369261060e67c9bc85
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.
source/blender/blenlib/PIL_time_utildefines.h
source/blender/editors/sculpt_paint/paint_stroke.c