1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "globals.h" #include <time.h> GlobalStruct globals = { .Flags.do_check_settings = 1, .DefaultFlags.do_check_settings = 1, .Registers.last_rise_time_relay_setting = 99 }; long sec_timer (void) { return (long)time(NULL); }