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
Post a Comment