[Mono-list] portable timer?

Maurizio Colucci seguso.forever@tin.it
Wed, 30 Apr 2003 09:59:30 +0200


Hello,

I am writing a portable 3d game with mono and the Tao library (which
has mono bindings for glut).

I need some kind of timer in order to tune the framerate dynamically.
On windows, I p/invoked GetTickCount(), which is a function in the
Win32 API.

WHat can I do now? Is there some 100% cross-platform library I can
invoke?

Thank you.


public class Timer{
 [DllImport("kernel32.dll")]
 public static extern uint GetTickCount();


Maurizio