Browse Source
Merge pull request #140 from gdkchan/time_fix
Fix time returning epoch time in milliseconds rather than in seconds
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/core/hle/service/time/time.cpp
|
|
|
@ -25,7 +25,7 @@ public: |
|
|
|
|
|
|
|
private: |
|
|
|
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()) |
|
|
|
.count()}; |
|
|
|
IPC::RequestBuilder rb{ctx, 4}; |
|
|
|
|