00001 #ifndef __CLOCK_H 00002 #define __CLOCK_H 00003 00005 typedef long long time_val; 00006 00008 extern void clock_init(); 00009 00020 extern void clock_setup(time_val t_offset, time_val speed_pct); 00021 00026 extern time_val get_time(); 00027 00032 void adjust_time(time_val diff); 00033 00039 extern int poll_time(time_val abstime); 00040 00046 extern void time2net(time_val tv, char * addr); 00047 00053 extern time_val net2time(char * addr); 00054 00055 #endif // __CLOCK_H