2 //=============================================================================
6 * @author Bala <bala@cs.wustl.edu>
8 //=============================================================================
14 #include "Stopwatch_display.h"
25 Timer_imp (XtAppContext
&,
30 virtual ~Timer_imp ();
32 /// Resets, and starts the clock ticking
38 /// Returns time since timer started
39 CORBA::Float
elapsed_time (void);
43 /// Static member function used for TimeOut callback.
44 static void tick_callback (XtPointer
,
47 /// Called every interval_ milliseconds
50 /// Called at each clock tick...
51 virtual void report_time (CORBA::Float
);
53 /// A copy of the stopwatch object
54 Stopwatch_display
*stopwatch_
;
56 /// Current number of ticks
59 /// Time in milliseconds between updates
60 CORBA::Long interval_
;
62 /// Identifier of current TimeOut
65 /// Required by Xt functions