Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace all instances of System.currentTimeMillis() with System.nanoTime() #6

Open
cohen990 opened this issue Jan 12, 2016 · 0 comments

Comments

@cohen990
Copy link
Owner

according to - http://stackoverflow.com/questions/1770010/how-do-i-measure-time-elapsed-in-java, System.currentTimeMillis() is your computer's set clock whereas System.nanoTime() uses the clock on your processor and cannot be changed by the user. Plus it works in nanoseconds :) (although the invocation can purportedly take more than a millisecond to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant