A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Joined: Aug 24, 2003
Oct 14, 2005 03:17:00
Hi guys, I hope you can help:
Im developing in
1.4.2 is there a mechanism to get the current time in Nano seconds rather than just milliseconds?
Joined: Apr 14, 2004
Oct 14, 2005 03:42:00
System.nanoTime() - since 1.5. Doesn't sound too reliable though.
Michael Lloyd Lee
Joined: Sep 07, 2005
Oct 14, 2005 06:03:00
not without JNI or upgrading to 1.5.
Please please please use code tags!<br /> <br /><a href="http://java.sun.com/j2se/1.5.0/docs/api/" target="_blank" rel="nofollow">Java API</a> - <a href="http://java.sun.com/docs/books/tutorial/index.html" target="_blank" rel="nofollow">Java Tutorials</a>
I agree. Here's the link:
subject: Nano Timer
getting the time in milliseconds
get milliseconds from java.sql.Timestamp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015