CLOCK_MONOTONIC substitution for uclibc?

Joakim Tjernlund joakim.tjernlund at transmode.se
Fri Sep 26 07:13:59 UTC 2008


On Fri, 2008-09-26 at 13:30 +0800, Steven Woody wrote:
> Hi,
> 
> I see even though uclibc implemented clock_gettime(clock_id, tp), it
> does not support clock type of CLOCK_MONOTONIC.  So if I want some
> kind of monotonic time which should not changed by user process ( such
> as setting of date), what should I do?

Use "ticks = times(NULL)", NULL can only be used on Linux.

 Jocke 



More information about the uClibc mailing list