MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / total_microseconds

Function total_microseconds

extern/boost/boost/date_time/time_duration.hpp:121–127  ·  view source on GitHub ↗

Returns total number of microseconds truncating any sub microsecond values

Source from the content-addressed store, hash-verified

119 }
120 //! Returns total number of microseconds truncating any sub microsecond values
121 BOOST_CXX14_CONSTEXPR tick_type total_microseconds() const
122 {
123 if (ticks_per_second() < 1000000) {
124 return ticks() * (static_cast<tick_type>(1000000) / ticks_per_second());
125 }
126 return ticks() / (ticks_per_second() / static_cast<tick_type>(1000000)) ;
127 }
128 //! Returns count of fractional seconds at given resolution
129 BOOST_CXX14_CONSTEXPR fractional_seconds_type fractional_seconds() const
130 {

Callers

nothing calls this directly

Calls 2

ticks_per_secondFunction · 0.85
ticksFunction · 0.85

Tested by

no test coverage detected