mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Replace std::time
with std::chrono::system_clock
This commit is contained in:
parent
ff1c71cc38
commit
083b8172e0
2 changed files with 7 additions and 2 deletions
|
@ -290,7 +290,9 @@ void UpdateDiscordPresence(int party_size, SecretType type, const std::string& s
|
|||
discord_presence.smallImageText = "Dolphin is an emulator for the GameCube and the Wii.";
|
||||
}
|
||||
discord_presence.details = title.empty() ? "Not in-game" : title.c_str();
|
||||
discord_presence.startTimestamp = std::time(nullptr);
|
||||
discord_presence.startTimestamp = std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count();
|
||||
|
||||
if (party_size > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue