Forceinline time taking functions

This commit is contained in:
Ion Gaztañaga
2026-06-12 22:42:32 +02:00
parent 64f9b40258
commit 3cd93257db
+3 -3
View File
@@ -115,7 +115,7 @@ struct QPFHolder
template<int Dummy> template<int Dummy>
const double QPFHolder<Dummy>::nanosecs_per_tic = get_nsec_per_tic(); const double QPFHolder<Dummy>::nanosecs_per_tic = get_nsec_per_tic();
inline boost::uint64_t nsec_clock() BOOST_NOEXCEPT BOOST_MOVE_FORCEINLINE boost::uint64_t nsec_clock() BOOST_NOEXCEPT
{ {
double nanosecs_per_tic = QPFHolder<0>::nanosecs_per_tic; double nanosecs_per_tic = QPFHolder<0>::nanosecs_per_tic;
@@ -134,7 +134,7 @@ inline boost::uint64_t nsec_clock() BOOST_NOEXCEPT
namespace boost { namespace move_detail { namespace boost { namespace move_detail {
inline boost::uint64_t nsec_clock() BOOST_NOEXCEPT BOOST_MOVE_FORCEINLINE boost::uint64_t nsec_clock() BOOST_NOEXCEPT
{ {
boost::uint64_t count = ::mach_absolute_time(); boost::uint64_t count = ::mach_absolute_time();
@@ -164,7 +164,7 @@ inline boost::uint64_t nsec_clock() BOOST_NOEXCEPT
namespace boost { namespace move_detail { namespace boost { namespace move_detail {
inline boost::uint64_t nsec_clock() BOOST_NOEXCEPT BOOST_MOVE_FORCEINLINE boost::uint64_t nsec_clock() BOOST_NOEXCEPT
{ {
struct timespec count; struct timespec count;
::clock_gettime(BOOST_MOVE_DETAIL_CLOCK_MONOTONIC, &count); ::clock_gettime(BOOST_MOVE_DETAIL_CLOCK_MONOTONIC, &count);