|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68733 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-02-08 15:46:13
Author: viboes
Date: 2011-02-08 15:46:12 EST (Tue, 08 Feb 2011)
New Revision: 68733
URL: http://svn.boost.org/trac/boost/changeset/68733
Log:
Chrono: update original file from Bemman port to boost, so the runtime_resolution namespace is used.
Text files modified:
trunk/libs/chrono/example/runtime_resolution.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/libs/chrono/example/runtime_resolution.cpp
==============================================================================
--- trunk/libs/chrono/example/runtime_resolution.cpp (original)
+++ trunk/libs/chrono/example/runtime_resolution.cpp 2011-02-08 15:46:12 EST (Tue, 08 Feb 2011)
@@ -209,7 +209,6 @@
void test()
{
- using namespace boost::chrono;
std::cout << "runtime_resolution test\n";
clock::duration delay(boost::chrono::milliseconds(5));
clock::time_point start = clock::now();
@@ -217,7 +216,9 @@
;
clock::time_point stop = clock::now();
clock::duration elapsed = stop - start;
- std::cout << "paused " << nanoseconds(duration_cast<nanoseconds>(duration::tonanosec(elapsed))).count()
+ std::cout << "paused " <<
+ boost::chrono::nanoseconds(
+ boost::chrono::duration_cast<boost::chrono::nanoseconds>(duration::tonanosec(elapsed))).count()
<< " nanoseconds\n";
}
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