Languages
[Edit]
EN

Java - System.nanoTime() - what this methods really returns

11 points
Created by:
Suzannah-Estrada
620

System.nanoTime() method returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds. The best application of this time could be measuring how much time took some operations.

System.nanoTime method usage example

Edit

Output:

References

Edit
  1. System.nanoTime Method - Oracle Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join