Index: process_cpu_clocks.hpp =================================================================== --- process_cpu_clocks.hpp (revision 77539) +++ process_cpu_clocks.hpp (working copy) @@ -34,9 +34,13 @@ { BOOST_ASSERT(0 && "Boost::Chrono - Internal Error"); } + typedef ratio_divide>::type R; return time_point( - duration(c*(1000000000l/CLOCKS_PER_SEC)) + duration(static_cast(c)*R::num/R::den) ); +// return time_point( +// duration(c*(1000000000l/CLOCKS_PER_SEC)) +// ); } #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING @@ -56,9 +60,13 @@ { ec.clear(); } + typedef ratio_divide>::type R; return time_point( - duration(c*(1000000000l/CLOCKS_PER_SEC)) + duration(static_cast(c)*R::num/R::den) ); +// return time_point( +// duration(c*(1000000000l/CLOCKS_PER_SEC)) +// ); } #endif