From: Paul Richards Newsgroups: comp.os.msdos.djgpp Subject: Re: timer functions 2 Date: Fri, 16 Apr 1999 16:01:49 +0100 Organization: Paul's house Message-ID: <6sWdvFAdD1F3Ew5u@dunvegan1.demon.co.uk> References: <01be81f8$e3656c60$47faf8c8 AT aguia> NNTP-Posting-Host: dunvegan1.demon.co.uk X-NNTP-Posting-Host: dunvegan1.demon.co.uk:193.237.111.243 X-Trace: news.demon.co.uk 924280432 nnrp-08:26913 NO-IDENT dunvegan1.demon.co.uk:193.237.111.243 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike (32) Version 4.01 <5Y9PmoTxnkdx6tAFcQ+gcCx86I> Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii writes, > >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. I didn't get the original post but if you go to my website and download the IFS program because it has a small toolkit that I have. In the toolkit (toolkit.*) it has a small timer function. If you email me I'll explain more in-depth. -- Paul Richards aka. Pauldoo EMAIL Win95 paul AT dunvegan1 DOT demon DOT co DOT uk Linux pauldoo AT dunvegan1 DOT demon DOT co DOT uk HTTP www.dunvegan1.demon.co.uk/paul/ ICQ# 14106503 ======================================================= "Incompetence error, please replace user and try again"