Changeset 1850 for trunk/MagicSoft


Ignore:
Timestamp:
03/21/03 09:41:24 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r1668 r1850  
    239239    // else only maxcnt events are processed
    240240    //
     241    Int_t numcnts = 0;
     242
    241243    Bool_t rc = kTRUE;
    242244    if (maxcnt<0)
     
    251253                gClient->ProcessEventsFor(fProgress);
    252254#endif
     255                numcnts++;
    253256            }
    254257        else
    255             while ((rc=fTaskList->Process())==kTRUE) dummy++;
     258            while ((rc=fTaskList->Process())==kTRUE) numcnts++;
    256259    else
    257260        // check for number and break if unsuccessfull
     
    265268                gClient->ProcessEventsFor(fProgress);
    266269#endif
     270                numcnts++;
    267271            }
    268272        else
    269             while (dummy-- && (rc=fTaskList->Process())==kTRUE);
     273            while (dummy-- && (rc=fTaskList->Process())==kTRUE) numcnts++;
    270274
    271275    //
     
    278282    *fLog << dec << endl << "CPU  - "
    279283        << "Time: " << clock.CpuTime() << "s"
    280         << " for " << (maxcnt<0?dummy:maxcnt) << " Events"
    281         << " --> " << (maxcnt<0?dummy:maxcnt)/clock.CpuTime() << " Events/s"
     284        << " for " << numcnts << " Events"
     285        << " --> " << numcnts/clock.CpuTime() << " Events/s"
    282286        << endl;
    283287    *fLog << "Real - "
    284288        << "Time: " << clock.RealTime() << "s"
    285         << " for " << (maxcnt<0?dummy:maxcnt) << " Events"
    286         << " --> " << (maxcnt<0?dummy:maxcnt)/clock.RealTime() << " Events/s"
     289        << " for " << numcnts << " Events"
     290        << " --> " << numcnts/clock.RealTime() << " Events/s"
    287291        << endl << endl;
    288292
Note: See TracChangeset for help on using the changeset viewer.