diff options
| author | 2018-01-24 11:54:47 -0300 | |
|---|---|---|
| committer | 2018-01-24 11:54:47 -0300 | |
| commit | 703be1931a94d497a532ad6b1f38523cbc91ae36 (patch) | |
| tree | 6f2b56d2fd07511543caa5fd2c8877a4a21dfc86 /src/core | |
| parent | Merge pull request #139 from Rozelette/log_nvdrv (diff) | |
| download | yuzu-703be1931a94d497a532ad6b1f38523cbc91ae36.tar.gz yuzu-703be1931a94d497a532ad6b1f38523cbc91ae36.tar.xz yuzu-703be1931a94d497a532ad6b1f38523cbc91ae36.zip | |
Fix time returning epoch time in milliseconds rather than in seconds
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 8abb2ce7a..448ef8544 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -25,7 +25,7 @@ public: | |||
| 25 | 25 | ||
| 26 | private: | 26 | private: |
| 27 | void GetCurrentTime(Kernel::HLERequestContext& ctx) { | 27 | void GetCurrentTime(Kernel::HLERequestContext& ctx) { |
| 28 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::milliseconds>( | 28 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>( |
| 29 | std::chrono::system_clock::now().time_since_epoch()) | 29 | std::chrono::system_clock::now().time_since_epoch()) |
| 30 | .count()}; | 30 | .count()}; |
| 31 | IPC::RequestBuilder rb{ctx, 4}; | 31 | IPC::RequestBuilder rb{ctx, 4}; |