Roce update when switching tabs.
Windows adaptation.
Use std::time_t instead of time.h.