Update contrib.
1 // Copyright (C) 2001-2003
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_XTIME_WEK070601_HPP
8 #define BOOST_XTIME_WEK070601_HPP
10 #include <boost/thread/detail/config.hpp>
12 #include <boost/cstdint.hpp>
16 enum xtime_clock_types
30 #if defined(BOOST_NO_INT64_T)
31 typedef int_fast32_t xtime_sec_t; //INT_FAST32_MIN <= sec <= INT_FAST32_MAX
33 typedef int_fast64_t xtime_sec_t; //INT_FAST64_MIN <= sec <= INT_FAST64_MAX
36 typedef int_fast32_t xtime_nsec_t; //0 <= xtime.nsec < NANOSECONDS_PER_SECOND
42 int BOOST_THREAD_DECL xtime_get(struct xtime* xtp, int clock_type);
44 inline int xtime_cmp(const xtime& xt1, const xtime& xt2)
46 if (xt1.sec == xt2.sec)
47 return (int)(xt1.nsec - xt2.nsec);
49 return (xt1.sec > xt2.sec) ? 1 : -1;
54 #endif //BOOST_XTIME_WEK070601_HPP