Ticket #6361: 6361.patch
File 6361.patch, 977 bytes (added by , 11 years ago) |
---|
-
process_cpu_clocks.hpp
34 34 { 35 35 BOOST_ASSERT(0 && "Boost::Chrono - Internal Error"); 36 36 } 37 typedef ratio_divide<giga, ratio<CLOCKS_PER_SEC>>::type R; 37 38 return time_point( 38 duration( c*(1000000000l/CLOCKS_PER_SEC))39 duration(static_cast<rep>(c)*R::num/R::den) 39 40 ); 41 // return time_point( 42 // duration(c*(1000000000l/CLOCKS_PER_SEC)) 43 // ); 40 44 } 41 45 42 46 #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING … … 56 60 { 57 61 ec.clear(); 58 62 } 63 typedef ratio_divide<giga, ratio<CLOCKS_PER_SEC>>::type R; 59 64 return time_point( 60 duration( c*(1000000000l/CLOCKS_PER_SEC))65 duration(static_cast<rep>(c)*R::num/R::den) 61 66 ); 67 // return time_point( 68 // duration(c*(1000000000l/CLOCKS_PER_SEC)) 69 // ); 62 70 } 63 71 #endif 64 72