[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 ?


>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@debian.org                                     debian/rules
>lupus@ximian.com                             Monkeys do it better
>Mono-list maillist  -  Mono-list@lists.ximian.com

Hotmail : un compte GRATUIT qui vous suit partout et tout le temps !