• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where is the documentation for sun.misc.Perf?

 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in need of a better way to time then System.currentTimeMillis(), which causes the occasional skipped repaint requests on XP. If what I read is accurate, that is because of the slower resolution on Windows OS's compared to Linux, which is much smoother. I saw a mention of the counter class Perf, and it might fit the bill. The problem is I can't find documention for it at java.sun.com. What gives? Everything is usually so well documented there, but I can't find any info on it.

I am looking for a better timer for animations. Is this even a good class to consider, or is there a more accurate timer available?
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/products/jdk/faq/faq-sun-packages.html


For these reasons, there is no documentation available for the sun.* classes.

[ May 31, 2006: Message edited by: Martin Simons ]
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15715
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java 5, some new methods were added to java.lang.System, in particular the method nanoTime(). Maybe it's useful to you?

public static long nanoTime()

Returns the current value of the most precise available system timer, in nanoseconds.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!