Changeset 7553 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/01/06 17:20:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTask.cc
r7179 r7553 115 115 MTask::MTask(const char *name, const char *title) 116 116 : fFilter(NULL), fSerialNumber(0), fIsPreprocessed(kFALSE), 117 fStopwatch(0), fNumExec0(0) 117 fStopwatch(0), fNumExec0(0), fAccelerator(0) 118 118 { 119 119 fName = name ? name : "MTask"; … … 257 257 // 258 258 const Bool_t exec = fFilter ? fFilter->IsConditionTrue() : kTRUE; 259 260 259 if (!exec) 261 260 return kTRUE; 262 261 263 fStopwatch->Start(kFALSE); 262 if (!HasAccelerator(kAccDontCount|kAccDontTime)) 263 fStopwatch->Start(kFALSE); 264 264 const Int_t rc = Process(); 265 fStopwatch->Stop(); 265 if (!HasAccelerator(kAccDontTime)) 266 fStopwatch->Stop(); 266 267 267 268 return rc; … … 428 429 *fLog << all << setfill(' ') << setw(lvl) << " "; 429 430 430 if (GetCpuTime()>0 && time>0 && GetCpuTime()>=0.001*time )431 if (GetCpuTime()>0 && time>0 && GetCpuTime()>=0.001*time && !HasAccelerator(kAccDontTime)) 431 432 *fLog << Form("%5.1f", GetCpuTime()/time*100) << "% "; 432 433 else … … 436 437 *fLog << GetStreamId() << ":"; 437 438 *fLog << GetDescriptor() << "\t"; 438 *fLog << dec << GetNumExecutions(); 439 440 if (HasAccelerator(kAccDontCount)) 441 *fLog << "-/-"; 442 else 443 *fLog << dec << GetNumExecutions(); 444 439 445 if (fFilter) 440 446 *fLog << " <" << fFilter->GetName() << ">";
Note:
See TracChangeset
for help on using the changeset viewer.