|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74452 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-09-18 10:13:31
Author: viboes
Date: 2011-09-18 10:13:30 EDT (Sun, 18 Sep 2011)
New Revision: 74452
URL: http://svn.boost.org/trac/boost/changeset/74452
Log:
Adapt test to definition of BOOST_CHRONO_HAS_THREAD_CLOCK
Text files modified:
trunk/libs/chrono/example/test_thread_clock.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/libs/chrono/example/test_thread_clock.cpp
==============================================================================
--- trunk/libs/chrono/example/test_thread_clock.cpp (original)
+++ trunk/libs/chrono/example/test_thread_clock.cpp 2011-09-18 10:13:30 EDT (Sun, 18 Sep 2011)
@@ -11,11 +11,12 @@
#include <iostream>
-using namespace boost::chrono;
void test_thread_clock()
{
#if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
+ using namespace boost::chrono;
+
std::cout << "thread_clock test" << std::endl;
thread_clock::duration delay = milliseconds(5);
thread_clock::time_point start = thread_clock::now();
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