In Java, what is the fastest way to get the system time? -


i'm developing system use system time because delayed interface.

what fastet way time system?

currently i'm using calendar.getinstance().gettimeinmillis() every time need time, don't know if there faster way.

system.currenttimemillis()
"returns current time in milliseconds".
use actual system time.

system.nanotime().
"the value returned represents nanoseconds since fixed arbitrary origin time"
use you're measuring time lapses / events.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -