diff options
| author | 2018-01-24 10:45:07 -0500 | |
|---|---|---|
| committer | 2018-01-24 10:45:07 -0500 | |
| commit | b35cf672c0c8874ba426ca823c0fa8dec09c1b64 (patch) | |
| tree | 6f2b56d2fd07511543caa5fd2c8877a4a21dfc86 /src | |
| parent | Merge pull request #139 from Rozelette/log_nvdrv (diff) | |
| parent | Fix time returning epoch time in milliseconds rather than in seconds (diff) | |
| download | yuzu-b35cf672c0c8874ba426ca823c0fa8dec09c1b64.tar.gz yuzu-b35cf672c0c8874ba426ca823c0fa8dec09c1b64.tar.xz yuzu-b35cf672c0c8874ba426ca823c0fa8dec09c1b64.zip | |
Merge pull request #140 from gdkchan/time_fix
Fix time returning epoch time in milliseconds rather than in seconds
Diffstat (limited to 'src')
| -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}; |