aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2009-01-04 15:56:16 -0800
committerJohn Hawthorn <jhawthor@uvic.ca>2009-01-04 15:56:16 -0800
commit23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1 (patch)
treeb8c49f0221bae51ce3d4f1e730f716a48545320a /src
parent26808975707edd2949575d03518b565d701e9b6d (diff)
downloadmirror-meh-23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1.tar.gz
mirror-meh-23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1.tar.bz2
mirror-meh-23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1.zip
more TDEBUG information
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/meh.h2
2 files changed, 3 insertions, 1 deletions
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)