Modified from str2str of RTKLIB, the function is : input GPS raw data from serial, TCP or ntrip and decode the raw data to extract the GPS time information, then update the system time. The update period is set to 10 seconds, that is to say the thread in this routine repeating ( waking ) every 10 seconds.