mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
[util] Change GetMockTime to return chrono type instead of int
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user