lemon/time_measure.h
changeset 2294 abf880d78522
parent 2243 5deb7b22a0ec
child 2391 14a343be7a5a
equal deleted inserted replaced
17:b5fbfae69d21 18:95a928509975
   521                             TimeStamp *full_time=NULL)
   521                             TimeStamp *full_time=NULL)
   522   {
   522   {
   523     TimeStamp full;
   523     TimeStamp full;
   524     unsigned int total=0;
   524     unsigned int total=0;
   525     Timer t;
   525     Timer t;
   526     for(unsigned int tn=1;tn <= 1<<31 && full.realTime()<=min_time; tn*=2) {
   526     for(unsigned int tn=1;tn <= 1U<<31 && full.realTime()<=min_time; tn*=2) {
   527       for(;total<tn;total++) f();
   527       for(;total<tn;total++) f();
   528       full=t;
   528       full=t;
   529     }
   529     }
   530     if(num) *num=total;
   530     if(num) *num=total;
   531     if(full_time) *full_time=full;
   531     if(full_time) *full_time=full;