gage timer

is there a gage timer implementations for linux and macosx?
I’ve been to jbanes’s site but only got the windows version.
Thanks.

It’s only windows that is broken. The others don’t need a timer.

I’m not positive, and maybe Jerason should post to be sure, but I believe the lib works on all OS’s, but it only uses the Native interface on Windows, since MacOS and Linux have decent timing with the regular Java methods.

This should all be transparent to the programmer, as it checks the OS and chooses what to use for you.

Hi Pepe,

As the others have said, GAGETimer is not Windows dependent. It simply tries to work around a few flaws in Windows. If you have any trouble on a specific OS, let me know and I’ll see if it’s a bug.

Have fun! :slight_smile:

Hi, thanks for your answers.
There is no bug, i just thought it was hires timers (thus expected native libs on more platforms than just windows). :confused:
Anyway, it will fit my needs.

I looked at the sourcecode and refactored it ‘a bit’. ( shame, can’t stop doing that… :stuck_out_tongue: ) It should init and react a bit faster (while might not be percievable) , and be smaller. It is also a bit clearer, as there are no more special case handling. I’ve also added some tests at places. I’ve annoted two or three things in sources, as i was there.
where should i send it to you? gmail? techie?

[edit] oh, and btw, it’s still compatible. i’ve just changed some internals. API did not change at all.