[Mono-list] portable timer?

Thong (Tum) Nguyen tum@veridicus.com
Thu, 1 May 2003 06:16:51 +1200


Try Environment.TickCount :)

^Tum

I've stopped 14,498 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/

> -----Original Message-----
> From: mono-list-admin@lists.ximian.com [mailto:mono-list-
> admin@lists.ximian.com] On Behalf Of Maurizio Colucci
> Sent: Wednesday, 30 April 2003 8:00 p.m.
> To: mono-list
> Subject: [Mono-list] portable timer?
> 
> 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
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list