9 #ifndef __SYSTEM_TICKS_H
10 #define __SYSTEM_TICKS_H
18 #define BSP_START_YEAR 1970
19 #define YEARS_TILL_LEAP_YEAR 2
21 #define DAYS_IN_START_YEAR 365
22 #define INVALID_TIME -22
23 #define INVALID_DATE -23
30 void maintain_system_ticks( uint16 announce_ticks );
31 void initialise_system_ticks();
32 uint16 get_ticks_per_second();
33 uint16 get_ms_per_tick();
35 double get_elapsed_ticks();
36 void ticks_to_time(
double doubleTicks,
time_date_t *time_p );
37 double utc_to_ticks(
double utc );
38 void ticks_to_utc(
double ticks,
double *utc_p );
39 void get_ticks_and_seg(
double *ticks_p, sint32 *seg_p);
40 void set_system_time(uint32 seconds);
44 bool system_ticks_clock_failure();
45 void system_ticks_create_clock_failure_file();
46 unicode_p system_ticks_is_clock_fault_popup_required();
47 void milliseconds_to_time(
double milliseconds,
time_date_t *time_p );
48 bool system_ticks_does_clock_fault_file_exist();
49 bool SNTPServerFailure();
50 bool SNTPTimeSyncFailure();
Definition: stdtypes.h:144