Changeset 9314 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 02/11/09 11:57:57 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEnv.cc
r8907 r9314 60 60 61 61 #include "MArgs.h" 62 #include "MString.h" 62 63 63 64 ClassImp(MEnv); … … 541 542 542 543 if (style>3999 && style<4101) 543 val = Form("%d%%", style-4000);544 val = MString::Format("%d%%", style-4000); 544 545 545 546 switch (style) -
trunk/MagicSoft/Mars/mbase/MTask.cc
r8907 r9314 233 233 // This does not reset the counter! 234 234 fStopwatch->Reset(); 235 fNumExecutions = 0; 236 fNumExec0 = GetNumExecutionsTotal(); 235 fNumExec0 = fNumExecutions; 237 236 238 237 *fLog << all << GetDescriptor() << "... " << flush; … … 400 399 UInt_t MTask::GetNumExecutions() const 401 400 { 402 return GetNumExecutionsTotal()-fNumExec0;403 } 404 405 // -------------------------------------------------------------------------- 406 // 407 // Return the total number of calls to Process() . If Process() was not401 return fNumExecutions-fNumExec0; 402 } 403 404 // -------------------------------------------------------------------------- 405 // 406 // Return the total number of calls to Process() ever. If Process() was not 408 407 // called due to a set filter this is not counted. 409 408 // 410 409 UInt_t MTask::GetNumExecutionsTotal() const 411 410 { 412 return fNumExecutions -1;411 return fNumExecutions; 413 412 } 414 413 … … 467 466 *fLog << GetDescriptor(); 468 467 469 if (GetNumExecutions() !=(UInt_t)-1)468 if (GetNumExecutions()>0) 470 469 *fLog << "\t" << dec << GetNumExecutions(); 471 470
Note:
See TracChangeset
for help on using the changeset viewer.