diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2009-01-04 15:56:16 -0800 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2009-01-04 15:56:16 -0800 |
commit | 23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1 (patch) | |
tree | b8c49f0221bae51ce3d4f1e730f716a48545320a /src | |
parent | 26808975707edd2949575d03518b565d701e9b6d (diff) | |
download | mirror-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.c | 2 | ||||
-rw-r--r-- | src/meh.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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){ @@ -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) |