29 dt_timer_t *
t = g_malloc(
sizeof(dt_timer_t));
31 t->function = function;
32 t->timer = g_timer_new();
40 g_timer_stop(
t->timer);
42 fprintf(stderr,
"Timer %s in function %s took %.3f seconds to execute.\n",
t->description,
t->function,
43 g_timer_elapsed(
t->timer, &ms));
44 g_timer_destroy(
t->timer);
const char ** description(struct dt_iop_module_t *self)
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
dt_timer_t * dt_timer_start_with_name(const char *file, const char *function, const char *description)
void dt_timer_stop_with_name(dt_timer_t *t)