BLI timeit utils: Add accessor to time value for TIMEBLOCK macros.
This commit is contained in:
parent
4c793a5b20
commit
c63b2e5187
|
@ -104,6 +104,8 @@
|
|||
} \
|
||||
(void)0
|
||||
|
||||
#define TIMEIT_BLOCK_VALUE(id) (float)(_timeit_var_##id)
|
||||
|
||||
#define TIMEIT_BLOCK_STATS(id) \
|
||||
{ \
|
||||
printf("%s time (in seconds): %f\n", #id, _timeit_var_##id); \
|
||||
|
|
Loading…
Reference in New Issue