aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-24 10:45:07 -0500
committerGitHub <noreply@github.com>2018-01-24 10:45:07 -0500
commitb35cf672c0c8874ba426ca823c0fa8dec09c1b64 (patch)
tree6f2b56d2fd07511543caa5fd2c8877a4a21dfc86 /src
parenta93ff5ed0f517b6923b63f8ab10b3da825f92870 (diff)
parent703be1931a94d497a532ad6b1f38523cbc91ae36 (diff)
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.cpp2
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 8abb2ce7a4..448ef8544f 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/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};