Date: Sun, 11 Apr 1999 13:56:24 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Luiz Fernando cc: djgpp AT delorie DOT com Subject: Re: timer functions 2 In-Reply-To: <01be81f8$e3656c60$47faf8c8@aguia> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 8 Apr 1999, Luiz Fernando wrote: > i want to have my game running at same speed in computer of diferent > speeds (slowers and faster). > how can i do it ? I think `setitimer' or `alarm' should help you; please read their documentation. You should be able to set up a timer for a certain period of time, and calibrarate the CPU speed by counting the number of some loop iterations done during that time.