[util] Change GetMockTime to return chrono type instead of int

This commit is contained in:
Amiti Uttarwar
2021-02-10 18:30:51 -08:00
parent a2d908e1da
commit df6a5fc1df
3 changed files with 7 additions and 6 deletions

View File

@@ -53,9 +53,9 @@ void SetMockTime(int64_t nMockTimeIn)
nMockTime.store(nMockTimeIn, std::memory_order_relaxed);
}
int64_t GetMockTime()
std::chrono::seconds GetMockTime()
{
return nMockTime.load(std::memory_order_relaxed);
return std::chrono::seconds(nMockTime.load(std::memory_order_relaxed));
}
int64_t GetTimeMillis()