# HG changeset patch # User michael # Date 1171290348 0 # Node ID 54e4581f1c9de2fcc30be3bd589e76dc5b88b19b # Parent 2d2e2b4e50fa42d546886f54917d64831084cba0 slightly improve *_TIMER diff -r 2d2e2b4e50fa -r 54e4581f1c9d common.h --- a/common.h Sun Feb 11 22:07:06 2007 +0000 +++ b/common.h Mon Feb 12 14:25:48 2007 +0000 @@ -314,7 +314,7 @@ static uint64_t tsum=0;\ static int tcount=0;\ static int tskip_count=0;\ - if(tcount<2 || tend - tstart < 8*tsum/tcount){\ + if(tcount<2 || tend - tstart < FFMAX(8*tsum/tcount, 2000)){\ tsum+= tend - tstart;\ tcount++;\ }else\