www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/11/06:58:36

Date: Sun, 11 Apr 1999 13:56:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Luiz Fernando <luisoft AT myway DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: timer functions 2
In-Reply-To: <01be81f8$e3656c60$47faf8c8@aguia>
Message-ID: <Pine.SUN.3.91.990411135605.28502K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019