Changeset 1850 for trunk/MagicSoft
- Timestamp:
- 03/21/03 09:41:24 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1668 r1850 239 239 // else only maxcnt events are processed 240 240 // 241 Int_t numcnts = 0; 242 241 243 Bool_t rc = kTRUE; 242 244 if (maxcnt<0) … … 251 253 gClient->ProcessEventsFor(fProgress); 252 254 #endif 255 numcnts++; 253 256 } 254 257 else 255 while ((rc=fTaskList->Process())==kTRUE) dummy++;258 while ((rc=fTaskList->Process())==kTRUE) numcnts++; 256 259 else 257 260 // check for number and break if unsuccessfull … … 265 268 gClient->ProcessEventsFor(fProgress); 266 269 #endif 270 numcnts++; 267 271 } 268 272 else 269 while (dummy-- && (rc=fTaskList->Process())==kTRUE) ;273 while (dummy-- && (rc=fTaskList->Process())==kTRUE) numcnts++; 270 274 271 275 // … … 278 282 *fLog << dec << endl << "CPU - " 279 283 << "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" 282 286 << endl; 283 287 *fLog << "Real - " 284 288 << "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" 287 291 << endl << endl; 288 292
Note:
See TracChangeset
for help on using the changeset viewer.