[PATCH] [libcxx] Partially address a FIXME in steady_clock::now()

Jonathan Roelofs jonathan at codesourcery.com
Wed Jul 16 09:08:45 PDT 2014


Is it possible to build a monotonic clock out of a non-monotonic clock in 
software only?

I could force it to be monotonic with some static storage and a max=, but would 
that be correct?


Jon

On 7/15/14, 10:02 PM, Marshall Clow wrote:
> On a system w/o _POSIX_MONOTONIC_CLOCK, this will change from "libc++ will not build" to "it will build a non-conforming library"
>
> That doesn't seem like an improvement to me.
>
> http://reviews.llvm.org/D4045
>
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-commits mailing list