Hi Thomas, it is a feature in so far the on creation a TStopwatch is started, so the counter is set to 1 when you look at it. This allows: TStopwatch watch; <loop> watch.Print(); For what you want you can do: TStopwatch watch; ... ... watch.Start(kTRUE); <loop> watch.Print(); Cheers, Fons. On Thu, 2004-04-29 at 19:47, Thomas Bretz wrote: > Dear all, > > as I understand the counter is used to count how often the stopwatch was > started. If the stopwatch has never been started the counter is set to 1. > If it is started the first time the counter is set to 2. Is this a bug or > a feature? > > Thanks, > Thomas. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET