mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
adopt struct timespec
Replace struct timeval with struct timespec as the main data type for timestamps. This will allow the NTP code to work with timestamps in nanosecond resolution.
This commit is contained in:
10
smooth.h
10
smooth.h
@@ -35,14 +35,14 @@ extern void SMT_Finalise(void);
|
||||
|
||||
extern int SMT_IsEnabled(void);
|
||||
|
||||
extern double SMT_GetOffset(struct timeval *now);
|
||||
extern double SMT_GetOffset(struct timespec *now);
|
||||
|
||||
extern void SMT_Activate(struct timeval *now);
|
||||
extern void SMT_Activate(struct timespec *now);
|
||||
|
||||
extern void SMT_Reset(struct timeval *now);
|
||||
extern void SMT_Reset(struct timespec *now);
|
||||
|
||||
extern void SMT_Leap(struct timeval *now, int leap);
|
||||
extern void SMT_Leap(struct timespec *now, int leap);
|
||||
|
||||
extern int SMT_GetSmoothingReport(RPT_SmoothingReport *report, struct timeval *now);
|
||||
extern int SMT_GetSmoothingReport(RPT_SmoothingReport *report, struct timespec *now);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user