Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Chrono Rounding Utilities

Header <boost/chrono/floor.hpp>
Header <boost/chrono/round.hpp>
Header <boost/chrono/ceil.hpp>
namespace boost { namespace chrono {
  template <class To, class Rep, class Period>
  To floor(const duration<Rep, Period>& d);
} }

This function round down the given parameter.

namespace boost { namespace chrono {
  template <class To, class Rep, class Period>
  To round(const duration<Rep, Period>& d);
} }

This function round to nearest, to even on tie the given parameter.

namespace boost { namespace chrono {
  template <class To, class Rep, class Period>
  To ceil(const duration<Rep, Period>& d);
} }

This function round up the given parameter.


PrevUpHomeNext