comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3418:e2b032584a83

fix for msvc 2008
author s.jodogne@gmail.com
date Wed, 12 Jun 2019 09:04:36 +0200
parents 541c787e2230
children 0a0e7eca95ae
comparison
equal deleted inserted replaced
3417:ad263225187c 3418:e2b032584a83
2068 2068
2069 MetricsTimer::~MetricsTimer() 2069 MetricsTimer::~MetricsTimer()
2070 { 2070 {
2071 const boost::posix_time::ptime stop = boost::posix_time::microsec_clock::universal_time(); 2071 const boost::posix_time::ptime stop = boost::posix_time::microsec_clock::universal_time();
2072 const boost::posix_time::time_duration diff = stop - start_; 2072 const boost::posix_time::time_duration diff = stop - start_;
2073 OrthancPluginSetMetricsValue(GetGlobalContext(), name_.c_str(), diff.total_milliseconds(), 2073 OrthancPluginSetMetricsValue(GetGlobalContext(), name_.c_str(), static_cast<float>(diff.total_milliseconds()),
2074 OrthancPluginMetricsType_Timer); 2074 OrthancPluginMetricsType_Timer);
2075 } 2075 }
2076 #endif 2076 #endif
2077 2077
2078 2078