• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.currentTimeMillis()  RSS feed

 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was just going through the JDK source of the System class & noticed that the currentTimeMillis() method is declared native.Where is the source code of this method?Is it in some DLL?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope the following article about the System.currentTimeMillis() might be helpful for you...

JavaWorld's article about profiling Java code

As for the source code of that method, I guess the JVM tries to call the native libraries according to the platform...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!