#ifndef UTIL_TIME_POINT_2022_08_01_H #define UTIL_TIME_POINT_2022_08_01_H #include #if(__cplusplus >= 201703L) namespace al::crypto::util { #else namespace al { namespace crypto { namespace util { #endif // Helper templates for selecting an exact unsigned // integral type based on a given number of bits. template auto time_point() -> IntegralTimePointType { using local_integral_time_point_type = IntegralTimePointType; using local_clock_type = ClockType; const auto current_now = static_cast ( std::chrono::duration_cast ( local_clock_type::now().time_since_epoch() ).count() ); return static_cast(current_now); } #if(__cplusplus >= 201703L) } // namespace al::crypto::util #else } // namespace util } // namespace crypto } // namespace al #endif #endif // UTIL_TIME_POINT_2022_08_01_H