> The CSN used in OpenLDAP 2.4 uses a generalizedTime stamp with microsecond
> resolution. *nix's gettimeofday() provides varying resolution in reality,
> but at least the API is defined to the microsecond. If you want to make
> yourself nauseous, look at the code I had to write to get equivalent
> resolution on Windows...

Yuk ...

Sadly, even if Sun added the System.nanoTime() method, we can't use it
to get a better accuracy than the rough 10 to 20 ms on Java ... Just
looking at the Javadoc tells you that you are at risk :


"...The value returned represents nanoseconds since some fixed but
arbitrary time (perhaps in the future, so values may be negative)..."

Maybe Doc used it on his DeLorean ;)

Another option in Java would be to switch to JNI, but that mean the
same dirty C code on W$ has to be written, plus the burden of having
targetted installation ... No way !

Thanks Howard !

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to