Remove Activ libs and includes
This commit is contained in:
1 parent
28ed30c944
commit
4b718994be
10967 files changed
-2306716
No files matched your search
@@ -1,55 +0,0 @@
|
||||
#ifndef ACTIV_BOOST_THREAD_TIME_HPP
|
||||
#define ACTIV_BOOST_THREAD_TIME_HPP
|
||||
// (C) Copyright 2007 Anthony Williams
|
||||
//
|
||||
// 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)
|
||||
|
||||
#include <ActivBoost/date_time/time_clock.hpp>
|
||||
#include <ActivBoost/date_time/microsec_time_clock.hpp>
|
||||
#include <ActivBoost/date_time/posix_time/posix_time_types.hpp>
|
||||
|
||||
#include <ActivBoost/config/abi_prefix.hpp>
|
||||
|
||||
namespace Boost
|
||||
{
|
||||
typedef Boost::posix_time::ptime system_time;
|
||||
|
||||
inline system_time get_system_time()
|
||||
{
|
||||
#if defined(ACTIV_BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK)
|
||||
return Boost::date_time::microsec_clock<system_time>::universal_time();
|
||||
#else // defined(ACTIV_BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK)
|
||||
return Boost::date_time::second_clock<system_time>::universal_time();
|
||||
#endif // defined(ACTIV_BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK)
|
||||
}
|
||||
|
||||
namespace detail
|
||||
{
|
||||
inline system_time get_system_time_sentinel()
|
||||
{
|
||||
return system_time(Boost::posix_time::pos_infin);
|
||||
}
|
||||
|
||||
inline unsigned long get_milliseconds_until(system_time const& target_time)
|
||||
{
|
||||
if(target_time.is_pos_infinity())
|
||||
{
|
||||
return ~(unsigned long)0;
|
||||
}
|
||||
system_time const now=get_system_time();
|
||||
if(target_time<=now)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return static_cast<unsigned long>((target_time-now).total_milliseconds()+1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#include <ActivBoost/config/abi_suffix.hpp>
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user