Amiga-C (31/157)

From:Paul Qureshi
Date:9 Sep 2001 at 12:56:38
Subject:[amiga-c] Re: Timing with C.

Hi Ventzisalv.

> So I wish to know what is the best (the one which gains less CPU
> cycles) way to do my executables run at the same speed on the both of
> my Amigas and on/or faster Amigas. I.e. they have to be synched with
> the internal clock of the computer or is there a way doing this with
> the custom chipset?

You really need to tie in to an interrupt. You could use a CIA timer
interrupt to signal your task periodically. Then all you have to do is
Wait() for the signal to arrive.

Regards,
Paul



.-------------------------------------.----------------.
| Ami3D....www.mc68k.btinternet.co.uk | Asm..C..Blitz2 |
| email...paul.qureshi@btinternet.com | Intel..Outside |
`-------------------------------------^----------------'
Amiga Support Association - www.amigasupport.co.uk

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/