|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63890 - in sandbox/chrono/libs/chrono: example src/win
From: vicente.botet_at_[hidden]
Date: 2010-07-11 14:16:01
Author: viboes
Date: 2010-07-11 14:16:00 EDT (Sun, 11 Jul 2010)
New Revision: 63890
URL: http://svn.boost.org/trac/boost/changeset/63890
Log:
* Fix "warning: unused variable 'cause'"
* Fix "warning C4244: 'argument' : conversion from 'const __int64' to 'const double', possible loss of data"
Text files modified:
sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp | 2 +-
sandbox/chrono/libs/chrono/src/win/thread_clock.cpp | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
Modified: sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp 2010-07-11 14:16:00 EDT (Sun, 11 Jul 2010)
@@ -47,7 +47,7 @@
os << boost::chrono::duration<double>(duration_t(sum(acc))).count();
break;
case 'a':
- os << boost::chrono::duration<double>(duration_t(typename duration_t::rep(mean(acc)))).count();
+ os << count(acc)>0?boost::chrono::duration<double>(duration_t(typename duration_t::rep(sum(acc)))).count()/count(acc):0;
break;
case 'c':
os << count(acc);
Modified: sandbox/chrono/libs/chrono/src/win/thread_clock.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/win/thread_clock.cpp (original)
+++ sandbox/chrono/libs/chrono/src/win/thread_clock.cpp 2010-07-11 14:16:00 EDT (Sun, 11 Jul 2010)
@@ -81,7 +81,6 @@
}
else
{
- DWORD cause = ::GetLastError();
boost::throw_exception(
#if (BOOST_VERSION / 100 % 1000) < 44
system::system_error( ::GetLastError(), system::system_category, "chrono::monotonic_clock" ));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk