From 23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 4 Jan 2009 15:56:16 -0800 Subject: more TDEBUG information --- src/main.c | 2 ++ src/meh.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index b46183f..9519e77 100644 --- a/src/main.c +++ b/src/main.c @@ -205,9 +205,11 @@ int doredraw(struct image **i){ setaspect((*i)->bufwidth, (*i)->bufheight); (*i)->buf = malloc(3 * (*i)->bufwidth * (*i)->bufheight); + TDEBUG_START if((*i)->fmt->read(*i)){ fprintf(stderr, "read error!\n"); } + TDEBUG_END("read") (*i)->fmt->close(*i); return 1; }else if(width && height){ diff --git a/src/meh.h b/src/meh.h index bec6724..7d62347 100644 --- a/src/meh.h +++ b/src/meh.h @@ -43,7 +43,7 @@ struct timeval t1;\ gettimeofday(&t0, NULL); #define TDEBUG_END(x) \ gettimeofday(&t1, NULL); \ -printf("%s: %li x100us\n", (x), ((t1.tv_sec - t0.tv_sec) * 1000000 + t1.tv_usec - t0.tv_usec) / 100); +printf("%s: %li e2 us\n", (x), ((t1.tv_sec - t0.tv_sec) * 1000000 + t1.tv_usec - t0.tv_usec) / 100); #else #define TDEBUG_START #define TDEBUG_END(x) -- cgit v1.2.3