1
0
Fork 0
forked from suyu/suyu

Fix time returning epoch time in milliseconds rather than in seconds

This commit is contained in:
gdkchan 2018-01-24 11:54:47 -03:00
parent a93ff5ed0f
commit 703be1931a

View file

@ -25,7 +25,7 @@ public:
private: private:
void GetCurrentTime(Kernel::HLERequestContext& ctx) { void GetCurrentTime(Kernel::HLERequestContext& ctx) {
const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::milliseconds>( const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch()) std::chrono::system_clock::now().time_since_epoch())
.count()}; .count()};
IPC::RequestBuilder rb{ctx, 4}; IPC::RequestBuilder rb{ctx, 4};