2
0
mirror of https://github.com/boostorg/chrono.git synced 2026-01-27 06:42:18 +00:00

Adapt test to definition of BOOST_CHRONO_HAS_THREAD_CLOCK

[SVN r74452]
This commit is contained in:
Vicente J. Botet Escriba
2011-09-18 14:13:30 +00:00
parent c8844c99e8
commit c3fa56b8da

View File

@@ -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();