Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/time.h
Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Kernel to clock driver interface. | * Kernel to clock driver interface. | ||||
*/ | */ | ||||
void inittodr(time_t base); | void inittodr(time_t base); | ||||
void resettodr(void); | void resettodr(void); | ||||
extern volatile time_t time_second; | extern volatile time_t time_second; | ||||
extern volatile time_t time_uptime; | extern volatile time_t time_uptime; | ||||
extern struct bintime boottimebin; | |||||
extern struct timeval boottime; | |||||
extern struct bintime tc_tick_bt; | extern struct bintime tc_tick_bt; | ||||
extern sbintime_t tc_tick_sbt; | extern sbintime_t tc_tick_sbt; | ||||
extern struct bintime tick_bt; | extern struct bintime tick_bt; | ||||
extern sbintime_t tick_sbt; | extern sbintime_t tick_sbt; | ||||
extern int tc_precexp; | extern int tc_precexp; | ||||
extern int tc_timepercentage; | extern int tc_timepercentage; | ||||
extern struct bintime bt_timethreshold; | extern struct bintime bt_timethreshold; | ||||
extern struct bintime bt_tickthreshold; | extern struct bintime bt_tickthreshold; | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | getsbinuptime(void) | ||||
getbinuptime(&_bt); | getbinuptime(&_bt); | ||||
return (bttosbt(_bt)); | return (bttosbt(_bt)); | ||||
} | } | ||||
void getbintime(struct bintime *bt); | void getbintime(struct bintime *bt); | ||||
void getnanotime(struct timespec *tsp); | void getnanotime(struct timespec *tsp); | ||||
void getmicrotime(struct timeval *tvp); | void getmicrotime(struct timeval *tvp); | ||||
void getboottime(struct timeval *boottime); | |||||
void getboottimebin(struct bintime *boottimebin); | |||||
/* Other functions */ | /* Other functions */ | ||||
int itimerdecr(struct itimerval *itp, int usec); | int itimerdecr(struct itimerval *itp, int usec); | ||||
int itimerfix(struct timeval *tv); | int itimerfix(struct timeval *tv); | ||||
int ppsratecheck(struct timeval *, int *, int); | int ppsratecheck(struct timeval *, int *, int); | ||||
int ratecheck(struct timeval *, const struct timeval *); | int ratecheck(struct timeval *, const struct timeval *); | ||||
void timevaladd(struct timeval *t1, const struct timeval *t2); | void timevaladd(struct timeval *t1, const struct timeval *t2); | ||||
void timevalsub(struct timeval *t1, const struct timeval *t2); | void timevalsub(struct timeval *t1, const struct timeval *t2); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |