From df6a5fc1dff3b1b7c2f2b67aad1ff17cac99f7b6 Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Wed, 10 Feb 2021 18:30:51 -0800 Subject: [util] Change GetMockTime to return chrono type instead of int --- src/util/time.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/time.h') diff --git a/src/util/time.h b/src/util/time.h index 03b75b5be5..38edc71de1 100644 --- a/src/util/time.h +++ b/src/util/time.h @@ -45,8 +45,9 @@ int64_t GetSystemTimeInSeconds(); // Like GetTime(), but not mockable /** For testing. Set e.g. with the setmocktime rpc, or -mocktime argument */ void SetMockTime(int64_t nMockTimeIn); + /** For testing */ -int64_t GetMockTime(); +std::chrono::seconds GetMockTime(); /** Return system time (or mocked time, if set) */ template -- cgit v1.2.3