Re: strange nonmonotonic behavior of gettimeoftheday -- seen similar

dean gaudet (dean-list-linux-kernel@arctic.org)
Sat, 3 Mar 2001 14:40:15 -0800 (PST)


On Fri, 2 Mar 2001, Richard B. Johnson wrote:

> Note that two subsequent calls to gettimeofday() must not return the
> same time even if your CPU runs infinitely fast. I haven't seen any
> kernel in the past few years that fails this test.

i don't see any requirement for this in SuS.

http://www.opengroup.org/onlinepubs/007908799/xsh/gettimeofday.html

it'd be a pretty disappointing requirement.

-dean

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/