native java timer

http://www.fawcette.com/archives/premier/mgznarch/javapro/2001/08aug01/km0108/km0108-2.asp

This link describes how to write a simple native java timer with a very high resolution. On the java sun’s forum someone said they did it and it worked like a charm. I have tried this but cannot seem to make the dll file. Anyone else try this method and succeed? If so could you email me the dll file
wolfbane10@hotmail.com

Dunno.

But if you have Java3D 1.3 in place anyway, there no need for such a thing. J3DTimer does the same.

that would be me :slight_smile:

i’ll mail you the dll if you want - though i’d also recommend getting it to compile on your own system as well. (as a learning experience if nothing else :slight_smile:

I just followed the tutorial to the letter. The only thing that isn’t covered in the tutorial, is the bit about what includes you need for dealing with JNI.
You need to add the following directories as includes, for it to compile.
\jdk1.4\include
\jdk1.4\include\win32

Considering i’d never used Visual Studio, or done any JNI, or even compiled a dll before, I was suprised how simple it was!

p.s.
I won’t be able 2 mail you the dll right away though - i’m surface scanning my hd…

rob,