id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 5543,Thread clock compatibility problems on Android,Libor Bus ,viboes,"There are compatibility problems of chrono library on Android (Android 2.2, NDK-r5b, chrono v0.71, rev #71693): 1) Sources with boost::chrono::thread_clock does not compile, since _POSIX_THREAD_CPUTIME is not defined on Android. My workaround is to hack chrono/config.hpp: # if 1 //defined(_POSIX_THREAD_CPUTIME) # define BOOST_CHRONO_HAS_THREAD_CLOCK # define BOOST_CHRONO_THREAD_CLOCK_IS_MONOTONIC true # endif 2) ::clock_gettime() fails when called with clock ID got from pthread_getcpuclockid. My workaround is to call ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) in chrono/detail/inlined/posix/thread_clock.hpp.",Bugs,closed,Boost 1.47.0,chrono,Boost Development Trunk,Problem,fixed,,