Merge pull request #4036 from RisingFog/rtc_osd

Display RTC on OSD
This commit is contained in:
Pierre Bourdon
2016-07-25 15:36:03 +02:00
committed by GitHub
11 changed files with 41 additions and 1 deletions

View File

@@ -179,6 +179,18 @@ std::string GetInputDisplay()
return input_display;
}
// NOTE: GPU Thread
std::string GetRTCDisplay()
{
time_t current_time = CEXIIPL::GetGCTimeJan1970();
tm* gm_time = gmtime(&current_time);
char buffer[256];
strftime(buffer, sizeof(buffer), "Date/Time: %c", gm_time);
std::stringstream format_time;
format_time << buffer;
return format_time.str();
}
// NOTE: GPU Thread
void FrameUpdate()
{