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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user