[Mono-list] A substitute to the high definition clock QueryPerformanceCounte

HannibAl Bundie hannibalbundie@hotmail.com
Tue, 27 Apr 2004 10:54:40 +0200


Thanks for your answer, it's exactly what I need.

ps : Could someone tell me what I must do to reply to a thread and not to 
create a thread please ?

Thanks

>From: Paolo Molaro <lupus@ximian.com>
>To: mono-list@lists.ximian.com
>Subject: Re: [Mono-list] A substitute to the high definition clock 
>QueryPerformanceCounter ?
>Date: Mon, 26 Apr 2004 15:58:17 +0200
>
>On unixy systems you should likely use gettimeofday ():
>
>         struct timeval {
>                 public int seconds;
>                 public int useconds;
>         }
>
>         [DllImport ("libc")]
>         static extern int gettimeofday (out timeval tv, IntPtr unused);
>
>That works on Linux/x86 and should work on many other systems as well (on
>some 64 bit systems the types may be longs, in others the order may be
>different, but both things can be easily checked at runtime if needed).
>
>lupus
>
>--
>-----------------------------------------------------------------
>lupus@debian.org                                     debian/rules
>lupus@ximian.com                             Monkeys do it better
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list

_________________________________________________________________
Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! 
http://g.msn.fr/FR1000/9493