First post and the usual question about Java timer

Hi there.
I am a new member to the java-gaming.org boards, which sounds like a very interesting board about Java.

So congrats and thankyous for the good work.

This said, could I start my journey through javagaming without a boring, perpetual, yet unanswered question about Java?
Yes, that question, exactly… timers.

Is there any chance to get an accurate timer for Java? The possiblity to profile the code accurately would be such a plus to me: I know there are alternatives to perform this task, but an accurate timer… my kingdom for an accurate timer =)

Welcome.

The Java3D package has one built-in.

I will do the shameless plugging this time for someone else. ;D

You can take a look either in the Shared Code forum at the thread called “A new kind of Timer”, or go over to this site and look at the GAGETimer, written by jbanes. They’re both the same thing, but a good explanation is available in the Shared Code Forum.

http://java.dnsalias.com/

Good luck.

in addition u can vote for a better one:

http://developer.java.sun.com/developer/bugParade/bugs/4478186.html

and if u r voting around u could also vote for structs:

http://developer.java.sun.com/developer/bugParade/bugs/4820062.html

:wink:

Thanks a lot people.

::)And…
I’ll vote =) See, I’m that kind of purist/dreamer/madman? who is expecting a timer to be part of the core java classes on any machine,
although the solutions offered are really appreciated.

[runs off to the Java 3d forum…]

And not forgetting our good ol’ LWJGL timer:
http://java-game-lib.sourceforge.net

Cas :slight_smile:

“See, I’m that kind of purist/dreamer/madman? who is expecting a timer to be part of the core java classes on any machine,”

There is… but alas, it’s not good enough. Most of the timers suggested are hi-res ones.