aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2021-02-17 20:23:25 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2021-02-17 20:38:08 +0100
commit372dd8da2475d7df584d31fa03f0b4d703b7c8f5 (patch)
tree6a10a112840bca2020037e621993b586a1609f55 /src/util/time.h
parent04336086d3cb2a738e82cf54d9995474ca485f0c (diff)
parent9266f7497f256d780178829e0f3a29ddaeb794ba (diff)
Merge #21110: util: remove Boost posix_time usage from GetTime*
9266f7497f256d780178829e0f3a29ddaeb794ba util: Use std::chrono for time getters (MarcoFalke) 3c2e16be22ae04bf56663ee5ec1554d0d569741b time: add runtime sanity check (Cory Fields) Pull request description: I have a followup that should remove the last of our `boost:posix_time` usage in `ParseISO8601DateTime`, but that will likely need more cross-platform testing/discussion, so have just split them up as this change is straight forward. ACKs for top commit: practicalswift: Tested ACK 9266f7497f256d780178829e0f3a29ddaeb794ba laanwj: Code review ACK 9266f7497f256d780178829e0f3a29ddaeb794ba Tree-SHA512: 5471a60e65e9fa8ef48320743ef637f1d162724e717e0f5509118e1e5732fc0844656a9c09d3d1300eb657dcc7a1e1e67305d8c9ef959c63be67393607dd4ceb
Diffstat (limited to 'src/util/time.h')
-rw-r--r--src/util/time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/time.h b/src/util/time.h
index c4f930781a..56131ce0fe 100644
--- a/src/util/time.h
+++ b/src/util/time.h
@@ -79,4 +79,7 @@ struct timeval MillisToTimeval(int64_t nTimeout);
*/
struct timeval MillisToTimeval(std::chrono::milliseconds ms);
+/** Sanity check epoch match normal Unix epoch */
+bool ChronoSanityCheck();
+
#endif // BITCOIN_UTIL_TIME_H