Stop Watch Widget

Is there a widget for a stop watch I can use?

I know there is a TStopWatch class, but that does not display a widget that will display a countdown.

What would be a good way to implement?

One solution I have in mind is to create 2 TTimer objects. One is used to trigger every second until the 2nd timer has elapsed (2nd timer is for a time interval of several minutes). The 1st Ttimer which triggers every second is used to update a TLabel widget in my window with a formatted time of minutes:seconds.

I would have to change the font size too so the minutes:seconds are displayed in large font size.

Thank you,

Hi Angel,

No, there is no such widget, you’ll have to do it yourself. If you want a fancy widget, you can take a look at the $(ROOTSYS)/tutorial/gui/CPUMeter.C tutorial.
Otherwise, a simple TGLabel with custom font could do it (for custom fonts, see $(ROOTSYS)/tutorial/gui/guilabels.C)

Cheers, Bertrand.