Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: clockctl(4) vs settimeofday(2)

In article <>,
Rich Neswold  <> wrote:
>On Mon, Dec 7, 2015 at 7:03 AM, Christos Zoulas <> wrote:
>> In article <>,
>> Paul Goyette  <> wrote:
>> >However, looking at the source file for lib/libc/sys/settimeofday.c we
>> >have the following comment which says that we first try the syscall()
>> >and only use the /dev/clockctl mechanism if the syscall() fails:
>> Using the syscall is simpler and cheaper, so I think the man page should
>> be updated.
>Is settimeofday() called frequently enough that "cheaper" is a concern?
>What is more correct (I don't know the answer)?

I think that it is best to minimize the delay between calling it and setting
the time.


Home | Main Index | Thread Index | Old Index