2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-18 02:22:10 +00:00
Files
thread/test/timming.hpp
Andrey Semashev 2a953f1c4b Merge pull request #309 from Lastique/fix_bind_warnings
Cleanup header includes
2026-02-06 14:04:41 +03:00

28 lines
767 B
C++

// Copyright (C) 2018 Vicente Botet
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_THREAD_TEST_TIMMING_HPP
#define BOOST_THREAD_TEST_TIMMING_HPP
#include <boost/thread/detail/config.hpp>
#include <boost/core/lightweight_test.hpp>
#if ! defined BOOST_THREAD_TEST_TIME_MS
#ifdef __linux__
#define BOOST_THREAD_TEST_TIME_MS 75
#else
// Windows, Cygwin, macOS all need this
#define BOOST_THREAD_TEST_TIME_MS 400
#endif
#endif
#if ! defined BOOST_THREAD_TEST_TIME_WARNING
#define BOOST_THREAD_TEST_IT(A, B) BOOST_TEST_LT((A).count(), (B).count())
#else
#define BOOST_THREAD_TEST_IT(A, B) BOOST_TEST_LT((A).count(), (B).count())
#endif
#endif