Home
last modified time | relevance | path

Searched refs:ticks_per_second (Results 1 – 15 of 15) sorted by relevance

/third_party/boost/boost/date_time/
Dtime_duration.hpp75 static BOOST_CXX14_CONSTEXPR tick_type ticks_per_second() in ticks_per_second() function in boost::date_time::time_duration
87 return static_cast<hour_type>(ticks() / (3600*ticks_per_second())); in hours()
92 return static_cast<min_type>((ticks() / (60*ticks_per_second())) % 60); in minutes()
97 return static_cast<sec_type>((ticks()/ticks_per_second()) % 60); in seconds()
102 return static_cast<sec_type>(ticks() / ticks_per_second()); in total_seconds()
107 if (ticks_per_second() < 1000) { in total_milliseconds()
108 return ticks() * (static_cast<tick_type>(1000) / ticks_per_second()); in total_milliseconds()
110 return ticks() / (ticks_per_second() / static_cast<tick_type>(1000)) ; in total_milliseconds()
115 if (ticks_per_second() < 1000000000) { in total_nanoseconds()
116 return ticks() * (static_cast<tick_type>(1000000000) / ticks_per_second()); in total_nanoseconds()
[all …]
Dtime_resolution_traits.hpp117 BOOST_STATIC_CONSTANT(boost::int64_t, ticks_per_second = resolution_adjust);
119 BOOST_STATIC_CONSTANT(fractional_seconds_type, ticks_per_second = resolution_adjust);
Dtime_system_split.hpp25 template<typename config, boost::int32_t ticks_per_second>
41 typedef date_time::wrapping_int<int_type, INT64_C(86400) * ticks_per_second > wrap_int_type;
/third_party/boost/libs/interprocess/test/
Dutil.hpp46 (double(time_duration::ticks_per_second())/double(1000000000.0))); in delay()
48 (double(time_duration::ticks_per_second())/double(1000.0))); in delay()
/third_party/boost/boost/interprocess/detail/
Dos_thread_functions.hpp314 long ticks_per_second =::sysconf(_SC_CLK_TCK); // ticks per sec
315 if(ticks_per_second <= 0){ //Try a typical value on error
316 ticks_per_second = 100;
318 return 999999999ul/static_cast<unsigned long>(ticks_per_second)+1ul;
/third_party/boost/boost/log/support/
Ddate_time.hpp73 …adjustment_ratio = (traits_type::ticks_per_second > boost::log::aux::decomposed_time::subseconds_p… in decompose_time_of_day()
74 … traits_type::ticks_per_second / boost::log::aux::decomposed_time::subseconds_per_second : in decompose_time_of_day()
75 boost::log::aux::decomposed_time::subseconds_per_second / traits_type::ticks_per_second) in decompose_time_of_day()
78 …v.subseconds = static_cast< uint32_t >(traits_type::ticks_per_second > boost::log::aux::decomposed… in decompose_time_of_day()
/third_party/boost/boost/thread/
Dxtime.hpp66 …me_nsec_t>(time_since_epoch.fractional_seconds()*(1000000000/time_since_epoch.ticks_per_second())); in get_xtime()
/third_party/boost/libs/date_time/test/posix_time/
Dtestfiletime_functions.cpp25 const time_duration::tick_type adjustor = time_duration::ticks_per_second() / 1000; in main()
Dtestduration.cpp160 check("ticks per second", time_duration::ticks_per_second() == 1000000000); in main()
266 double d1 = microseconds(25).ticks()/(double)time_duration::ticks_per_second(); in main()
/third_party/python/Modules/
Dtimemodule.c1290 static long ticks_per_second = -1;
1292 if (ticks_per_second == -1) {
1316 ticks_per_second = freq;
1320 if (ticks_per_second != -1) {
1325 info->resolution = 1.0 / (double)ticks_per_second;
1329 total = _PyTime_MulDiv(t.tms_utime, SEC_TO_NS, ticks_per_second);
1330 total += _PyTime_MulDiv(t.tms_stime, SEC_TO_NS, ticks_per_second);
Dposixmodule.c8927 static long ticks_per_second = -1; variable
8974 (double)t.tms_utime / ticks_per_second,
8975 (double)t.tms_stime / ticks_per_second,
8976 (double)t.tms_cutime / ticks_per_second,
8977 (double)t.tms_cstime / ticks_per_second,
8978 (double)c / ticks_per_second);
15700 ticks_per_second = sysconf(_SC_CLK_TCK); in posixmodule_exec()
15702 ticks_per_second = HZ; in posixmodule_exec()
15704 ticks_per_second = 60; /* magic fallback value; may be bogus */ in posixmodule_exec()
/third_party/boost/boost/thread/detail/
Dplatform_time.hpp149 …c = static_cast<long>(rel_time.fractional_seconds() * (1000000000l / rel_time.ticks_per_second())); in platform_duration()
152 ns_val += rel_time.fractional_seconds() * (1000000000l / rel_time.ticks_per_second()); in platform_duration()
/third_party/abseil-cpp/absl/random/internal/
Dnanobenchmark.cc494 static const double ticks_per_second = InvariantTicksPerSecond(); in SampleUntilStable() local
495 const size_t ticks_per_eval = ticks_per_second * p.seconds_per_eval; in SampleUntilStable()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dnanobenchmark.cc494 static const double ticks_per_second = InvariantTicksPerSecond(); in SampleUntilStable() local
495 const size_t ticks_per_eval = ticks_per_second * p.seconds_per_eval; in SampleUntilStable()
/third_party/python/Tools/c-analyzer/cpython/
Dignored.tsv2794 Modules/posixmodule.c - ticks_per_second -
2806 Modules/timemodule.c _PyTime_GetProcessTimeWithInfo ticks_per_second -