2 //=============================================================================
6 * @author Bala <bala@cs.wustl.edu>
8 //=============================================================================
14 #include "Stopwatch_display.h"
24 Timer_imp (XtAppContext
&,
29 virtual ~Timer_imp ();
31 /// Resets, and starts the clock ticking
37 /// Returns time since timer started
38 CORBA::Float
elapsed_time ();
41 /// Static member function used for TimeOut callback.
42 static void tick_callback (XtPointer
,
45 /// Called every interval_ milliseconds
48 /// Called at each clock tick...
49 virtual void report_time (CORBA::Float
);
51 /// A copy of the stopwatch object
52 Stopwatch_display
*stopwatch_
;
54 /// Current number of ticks
57 /// Time in milliseconds between updates
58 CORBA::Long interval_
;
60 /// Identifier of current TimeOut
63 /// Required by Xt functions