Skip to content

Commit fa253d3

Browse files
author
MarcoFalke
committed
util: Add HoursDouble
1 parent fa21fc6 commit fa253d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/time.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ constexpr int64_t count_seconds(std::chrono::seconds t) { return t.count(); }
5555
constexpr int64_t count_milliseconds(std::chrono::milliseconds t) { return t.count(); }
5656
constexpr int64_t count_microseconds(std::chrono::microseconds t) { return t.count(); }
5757

58+
using HoursDouble = std::chrono::duration<double, std::chrono::hours::period>;
5859
using SecondsDouble = std::chrono::duration<double, std::chrono::seconds::period>;
5960

6061
/**

0 commit comments

Comments
 (0)