0

I have written a java code and use the Scanner class to get the value from the user and System.nanoTime at the begin and end to get the total time of my code. Is it considering the time while I typing the input?

1 Answers1

0

Yes think it like a normal clock. Whenever you printed Nanotime, it shows that current time in Nanoseconds type.

Arty
  • 859
  • 2
  • 12
  • 31