diff options
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)  | 
