On 29 Aug 98 at 10:51, Rene Brun wrote: > > I believe that they used to reset after each "stop". Now they seem to > > continue where they left off. TBenchmark exibits the same behavior now > > (of course). I believe the fState variable is not functioning Yes, TStopwatch class has been changed to let user to accumulate the result. To reset stopwatch TStopwatch::Reset() method has been provided: class TStopwatch : public TObject { . . . public: void Reset(){ResetCpuTime();ResetRealTime();} void ResetCpuTime(Double_t time=0){Stop(); fTotalCpuTime = time;} void ResetRealTime(Double_t time=0){Stop(); fTotalRealTime = time;} . . . }; Very likely some extra parameter for Start() method would be useful something like TStopwatch::Start(Boo_t resetflag=kFALSE); instead of TStopwatch::Start(); I'll introduece this. Thank you for idea. Valery ================================================================= Dr. Valeri Faine (Fine) ------------------- Phone: +1 516 344 7806 Brookhaven National Laboratory FAX : +1 516 344 4206 Bldg. 510A /STAR mailto:fine@bnl.gov Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine USA Dr. Valery Fine Telex : 911621 dubna su ----------- LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80 141980 Dubna, Moscow region Fax : +7 09621 6 51 45 Russia mailto:fine@main1.jinr.dubna.su
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET