1 #include "../Common/Common.h"
4 #include "DasherControl.h"
8 gint
timer_callback(gpointer data
) {
9 return static_cast < CDasherControl
* >(data
)->TimerEvent();
12 gint
long_timer_callback(gpointer data
) {
13 return static_cast < CDasherControl
* >(data
)->LongTimerEvent();
17 // We need to provide a monotonic time source that ticks every millisecond
24 gettimeofday(&tv
, &tz
);
27 ms_now
= tv
.tv_usec
/ 1000;
29 return (s_now
* 1000 + ms_now
);