It is quite easy to get a current time by SNTP API, already present in SDK.
But what to do next? How to increment variable storing time every second, to be sure it is precise?
How precise is software timer (os_timer_t)? Can I just set it to perform time_var++ every 1000 milliseconds, or do I need something better? I do not want synchronize time every 10 minutes...
Maybe there is a better way? Can I use system_get_rtc_time() somehow to increment standard Unix timestamp?