Simply put, Windows does not have millisecond-precision time clocks. If you're on a windows machine, you'll NEVER achieve (well, ok, until a really slick new version of windows comes along, anyway) millisecond precision times. Search the Sun
Java site for millisecond bugs or questions if you don't believe me.
If you need to get distinct values such as for timestamp values in a database, you're best writing your own utility for it to ensure a new value with each call--something like this:
It may not be the most efficient (using the CURRENT TIMESTAMP feature is preferable in most cases), but it works on all platforms--even those that do not have millisecond level precision.
[ September 07, 2004: Message edited by: David Hibbs ]