Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#8728) usleep() and gettimeofday() aren't portable
Home

[Freeciv-Dev] (PR#8728) usleep() and gettimeofday() aren't portable

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8728) usleep() and gettimeofday() aren't portable
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 May 2004 16:17:07 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8728 >

I think our timing code can be better on win32.  Apparently Sleep() may 
only have 10ms resolution unless you tell it differently.  Obviously we 
should tell it differently!

We may also want to use timeGetTime() rather than ftime() on win32.

1ms resolution versus 10ms resolution may be a big difference when we 
start doing serious animations.

jason

-------- Original Message --------
Subject: Re: [Tuxnes-devel] usleep() and gettimeofday() aren't portable
Date: Wed, 12 May 2004 16:00:28 -0700 (PDT)
From: Mike Mestnik <cheako911@xxxxxxxxx>
To: Jason Dorje Short <jdorje@xxxxxxxxxxxx>,        "sourceforge.net 
tuxnes-devel" <tuxnes-devel@xxxxxxxxxxxxxxxxxxxxx>

Correct,  Here are some links I found that may or may not help us.

http://www.geisswerks.com/ryan/FAQS/timing.html
http://www.mine-control.com/zack/code/ztime.cpp
http://olofson.net/examples.html (pig)

This may help us get the x86 core going in win32.
http://www.ronybc.8k.com/firecode.htm




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8728) usleep() and gettimeofday() aren't portable, Jason Short <=