// Author: Otto Schaile // * Copyright OS #include "Rtypes.h" #include "TSystem.h" class TStopwatch; ///////////////////////////////////////////////////////////////// // // // MyWatch, // // This programs implements a wallclock + stopwatch // // Wallclock time is updated in user defined rate // // It displays weather data in Garching // // // ///////////////////////////////////////////////////////////////// class MyWatch : public TObject { private: TString fRealTimeDisplay; // Wall clock time (display) Int_t fBidRealTimeDisplay; TString fRunTimeDisplay; // Preset time (display) TString fElapsedTimeDisplay; // Elapsed time (display) Double_t fPresetEggTime; // Preset time (seconds) Int_t fBidPresetEggTime; // Button Id of Preset time Double_t fElapsedTime; // Elapsed time(seconds) Int_t fBidElapsedTime; Int_t fStopwatchRunning; Int_t fRealTimeDisplayRate; // No of milli seconds between update of wallclock Int_t fRealTimeCounter; // Int_t fVerbose; TStopwatch * fStopwatch; // TDatime *fDatime; // For real time and date TTimer *fTimer; // TTimer *fEggTimer; // TGMrbValuesAndText * fDialog; TList * fRowLab; void * fValp[100]; public: MyWatch(); ~MyWatch(); void StartEggTimer(); void StartStopWatch(); void StopStopWatch(); void ResumeStopWatch(); void HandleTimerEvents(); void HandleEggTimerEvents(); void UpdateWallclock(); void UpdateWeather() {}; void StartGui(); void CRButtonPressed(Int_t wid, Int_t bid, TObject *obj); void CloseDown(Int_t id); void SetVerbose(Int_t verbose) {fVerbose = verbose;}; ClassDef(MyWatch, 0) };