All --

> For speed reason, you can use GetSystemTimeAsFileTime(), which is
> very efficient. The Win32 is little-endian only operating system.
> You can use the following code.
> 
> void gettimeofday(struct timeval* pTv, void *pDummy);
> {
>     __int64 l;
>     GetSystemTimeAsFileTime((LPFILETIME) &l);
> 
>     pTv->tv_sec = (long) l / 10000000; /*10e7*/
>     pTv->tv_usec = (unsigned long) (i.QuadPart / 10) % 1000000; /*10e6*/ 
> }
> 
> You missed the cast.

Could someone on Win32 apply this info to platforms/win32.c, test it
and submit a patch if all is cool?


Regards,
 
-- Gregor
 _____________________________________________________________________ 
/     perl -e 'srand(-2091643526); print chr rand 90 for (0..4)'      \

   Gregor N. Purdy                          [EMAIL PROTECTED]
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/

Reply via email to