Changeset 5101
- Timestamp:
- 09/17/04 15:17:13 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5100 r5101 28 28 - make sure that the correct number of executions is returned 29 29 counter which cannot be reset properly) 30 - added GetNumExecutionsTotal 30 31 31 32 * mdata/MDataArray.cc: … … 51 52 * mhflux/MHFalseSource.cc: 52 53 - made lines of 2D-Gauss smaller 54 55 * star.cc: 56 - fixed handling of commandline arguments in batch mode 53 57 54 58 -
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; -
trunk/MagicSoft/Mars/star.cc
r4906 r5101 74 74 // Evaluate arguments 75 75 // 76 MArgs arg(argc, argv, k FALSE);76 MArgs arg(argc, argv, kTRUE); 77 77 78 78 if (arg.HasOnly("-?") || arg.HasOnly("-h") || arg.HasOnly("--help"))
Note:
See TracChangeset
for help on using the changeset viewer.