59 using flicks = std::chrono::duration<std::chrono::nanoseconds::rep,
60 std::ratio<1, 705600000>>;
64 std::chrono::duration_cast<flicks>(std::chrono::seconds{ 0 }) };
66 std::chrono::duration_cast<flicks>(std::chrono::seconds{ 1 }) };
68 std::chrono::duration_cast<flicks>(
69 std::chrono::duration<flicks::rep, std::ratio<1, 24>>{1}) };
71 std::chrono::duration_cast<flicks>(
72 std::chrono::duration<flicks::rep, std::ratio<1, 90>>{1}) };
78 return std::chrono::duration_cast<std::chrono::duration<double>>(ns).count();
84 return std::chrono::duration_cast<flicks>(std::chrono::duration<double>{s});
89 template <
class Rep,
class Period>
91 const std::chrono::duration<Rep, Period> in_duration) {
92 return std::chrono::duration_cast<flicks>(in_duration);
101 return std::hash<flicks::rep>{}(s.count());
constexpr flicks k_flicks_zero_seconds
Useful constants.
constexpr flicks k_flicks_one_twenty_fourth_of_second
constexpr double to_seconds(const flicks ns)
std::chrono::duration< std::chrono::nanoseconds::rep, std::ratio< 1, 705600000 > > flicks
constexpr flicks k_flicks_one_ninetieth_of_second
constexpr flicks k_flicks_one_second
constexpr flicks k_flicks_min_time
constexpr flicks flicks_cast(const std::chrono::duration< Rep, Period > in_duration)
constexpr flicks to_flicks(const double s)
result_type operator()(argument_type const &s) const