Class template time_resolution_traits
boost::date_time::time_resolution_traits
Synopsis
template<typename frac_sec_type, time_resolutions res,
#if(defined(BOOST_MSVC)&&(_MSC_VER< 1300)) boost::int64_t resolution_adjust,
#else typename frac_sec_type::int_type resolution_adjust,
#endif unsigned short frac_digits,
typename var_type = boost::int32_t>
class time_resolution_traits {
public:
typedef frac_sec_type::int_type fractional_seconds_type;
typedef frac_sec_type::int_type tick_type;
typedef frac_sec_type::impl_type impl_type;
typedef var_type day_type;
typedef var_type hour_type;
typedef var_type min_type;
typedef var_type sec_type;
static fractional_seconds_type as_number(impl_type);
static bool is_adapted();
static time_resolutions resolution();
static unsigned short num_fractional_digits();
static fractional_seconds_type res_adjust();
static tick_type
to_tick_count(hour_type, min_type, sec_type, fractional_seconds_type);
BOOST_STATIC_CONSTANT(boost::int64_t, ticks_per_second = resolution_adjust);
BOOST_STATIC_CONSTANT(fractional_seconds_type,
ticks_per_second = resolution_adjust);
};
Description
time_resolution_traits
public static functions
- <
staticfractional_seconds_typeas_number(impl_typei);
>
- <
staticboolis_adapted();
>
- <
statictime_resolutionsresolution();
>
- <
staticunsignedshortnum_fractional_digits();
>
- <
staticfractional_seconds_typeres_adjust();
>
- <
statictick_type
to_tick_count(hour_typehours,min_typeminutes,sec_typeseconds,
fractional_seconds_typefs);
>Любой отрицательный аргумент приводит к отрицательному счету tick_count.
time_resolution_traits
public member functions
- <
BOOST_STATIC_CONSTANT(boost::int64_t,ticks_per_second=resolution_adjust);
>
- <
BOOST_STATIC_CONSTANT(fractional_seconds_type,
ticks_per_second=resolution_adjust);
>