tech-kern archive

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

Re: A nit-pick on gettime(9) man-page



On 2017-01-04 10:10, Paul Goyette wrote:

    The system realtime clock is guaranteed to be monotonically
    increasing at all times.  As such, all calls to these functions
    are guaranteed to return a system time greater than or equal to
    the system time returned in any previous calls.


The guarantee to return a result "greater than or equal to" the previous
result is a property of a "monotonically non-decreasing" function.  A
"monotonically increasing" function would guarantee a results that is
strictly greater than any previous results.

So, which is correct here?    :)

Being nitpicky myself then, it's not the functions who are monotonically increasing. It is the system realtime clock that is. Thus all calls to these functions are guaranteed to return values that are greater than, or equal to the system time returned on previous calls.

As the text says...

	Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index