Added a hack so that krb5_us_timeofday() will always return a monotonically
authorTheodore Tso <tytso@mit.edu>
Wed, 27 Feb 1991 14:27:56 +0000 (14:27 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 27 Feb 1991 14:27:56 +0000 (14:27 +0000)
commit37038d197a95a27f9dd7dd2cadcd272e129041cb
treefe07dd47c22333789ab06e530981506becb64193
parent5565171b0593f03581d8ba9167b011dacb83c52d
Added a hack so that krb5_us_timeofday() will always return a monotonically
increasing time, bumping the microsecond time if necessary.  This
is needed on OS's like ultrix which only have a 10 us granularity
in their clock, and don't guarantee in the kernel that two calls to
gettimeofday will return different values.  This guarantees it in user
space, which isn't quite good enough (two different processes communicating
over the loopback interface could get confused), but it's better than
nothing.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1811 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/ustime.c