aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-04-08 12:32:15 +0200
committerMacroFake <falke.marco@gmail.com>2022-07-26 11:04:14 +0200
commitfa253d385f9201ea10beacecf3e0e80ff69f3138 (patch)
tree6f5d6d57fec30684fc9884b9bc1ba5084d9cdf18 /src
parentfa21fc60c292ab947b2200e54201440f16230566 (diff)
downloadbitcoin-fa253d385f9201ea10beacecf3e0e80ff69f3138.tar.xz
util: Add HoursDouble
Diffstat (limited to 'src')
-rw-r--r--src/util/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/time.h b/src/util/time.h
index c75b1e94ed..4f9bde5d56 100644
--- a/src/util/time.h
+++ b/src/util/time.h
@@ -55,6 +55,7 @@ constexpr int64_t count_seconds(std::chrono::seconds t) { return t.count(); }
constexpr int64_t count_milliseconds(std::chrono::milliseconds t) { return t.count(); }
constexpr int64_t count_microseconds(std::chrono::microseconds t) { return t.count(); }
+using HoursDouble = std::chrono::duration<double, std::chrono::hours::period>;
using SecondsDouble = std::chrono::duration<double, std::chrono::seconds::period>;
/**