Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74552 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-09-24 12:11:28


Author: viboes
Date: 2011-09-24 12:11:26 EDT (Sat, 24 Sep 2011)
New Revision: 74552
URL: http://svn.boost.org/trac/boost/changeset/74552

Log:
Chrono: refactor config file
Text files modified:
   trunk/boost/chrono/config.hpp | 25 ++++++++++++++++---------
   1 files changed, 16 insertions(+), 9 deletions(-)

Modified: trunk/boost/chrono/config.hpp
==============================================================================
--- trunk/boost/chrono/config.hpp (original)
+++ trunk/boost/chrono/config.hpp 2011-09-24 12:11:26 EDT (Sat, 24 Sep 2011)
@@ -37,19 +37,30 @@
 # elif !defined( BOOST_CHRONO_WINDOWS_API ) && !defined( BOOST_CHRONO_MAC_API ) && !defined( BOOST_CHRONO_POSIX_API )
 # if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
 # define BOOST_CHRONO_WINDOWS_API
-# define BOOST_CHRONO_HAS_CLOCK_STEADY
-# define BOOST_CHRONO_HAS_THREAD_CLOCK
-# define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
 # elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
 # define BOOST_CHRONO_MAC_API
-# define BOOST_CHRONO_HAS_CLOCK_STEADY
-# define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
 # else
 # define BOOST_CHRONO_POSIX_API
 # endif
 # endif
 
+# if defined( BOOST_CHRONO_WINDOWS_API )
+# ifndef UNDER_CE
+# define BOOST_CHRONO_HAS_PROCESS_CLOCKS
+# endif
+# define BOOST_CHRONO_HAS_CLOCK_STEADY
+# define BOOST_CHRONO_HAS_THREAD_CLOCK
+# define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
+# endif
+
+# if defined( BOOST_CHRONO_MAC_API )
+# define BOOST_CHRONO_HAS_PROCESS_CLOCKS
+# define BOOST_CHRONO_HAS_CLOCK_STEADY
+# define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
+# endif
+
 # if defined( BOOST_CHRONO_POSIX_API )
+# define BOOST_CHRONO_HAS_PROCESS_CLOCKS
 # include <time.h> //to check for CLOCK_REALTIME and CLOCK_MONOTONIC and _POSIX_THREAD_CPUTIME
 # if defined(CLOCK_REALTIME)
 # if defined(CLOCK_MONOTONIC)
@@ -77,10 +88,6 @@
 #undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY
 #endif
 
-#ifdef UNDER_CE
-#else
-#define BOOST_CHRONO_HAS_PROCESS_CLOCKS
-#endif
 
 // unicode support ------------------------------//
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk