Changeset 5101 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 09/17/04 15:17:13 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTask.cc
r5100 r5101 202 202 { 203 203 // This does not reset the counter! 204 // fStopwatch->Reset(); 205 206 delete fStopwatch; 207 fStopwatch = new TStopwatch; 204 fStopwatch->Reset(); 205 fNumExec0 = GetNumExecutionsTotal(); 208 206 209 207 *fLog << all << fName << "... " << flush; … … 354 352 // -------------------------------------------------------------------------- 355 353 // 354 // Return the total number of calls to since PreProcess(). If Process() was 355 // not called due to a set filter this is not counted. 356 // 357 UInt_t MTask::GetNumExecutions() const 358 { 359 return GetNumExecutionsTotal()-fNumExec0; 360 } 361 362 // -------------------------------------------------------------------------- 363 // 356 364 // Return the total number of calls to Process(). If Process() was not 357 365 // called due to a set filter this is not counted. 358 366 // 359 UInt_t MTask::GetNumExecutions () const367 UInt_t MTask::GetNumExecutionsTotal() const 360 368 { 361 369 return (UInt_t)fStopwatch->Counter()-1; -
trunk/MagicSoft/Mars/mbase/MTask.h
r4991 r5101 31 31 32 32 TStopwatch *fStopwatch; //! Count the execution time and number of executions 33 UInt_t fNumExec0; //! Total number of executions at PreProcess 33 34 34 35 virtual Int_t PreProcess(MParList *pList); … … 92 93 // Task execution statistics 93 94 UInt_t GetNumExecutions() const; 95 UInt_t GetNumExecutionsTotal() const; 94 96 Double_t GetCpuTime() const; 95 97 Double_t GetRealTime() const;
Note:
See TracChangeset
for help on using the changeset viewer.