Initialize Timestamp with nanos


final Timestamp timestamp = new Timestamp(System.currentTimeMillis());
timestamp.setNanos((int)(System.nanoTime() % 1000000000));

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout