Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scea.yaroze.beginners Subject: Re: Timer Date: Mon, 01 Nov 1999 17:52:01 +0000 Organization: Sony Computer Entertainment Europe Lines: 21 Message-ID: <381DD341.A73076D@scee.sony.co.uk> References: <7v4vh8$9m44@scea> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en Brian Weed wrote: > > Is there a way to get timing information on the NetYaroze? > I need a replacement for clock() (which apparently does not exist in the > NetYaroze API). > > I looked at GetRCnt(), but, even though it says it returns a long, it only > uses a 16bit integer for it's counter, and therefore wraps around way too > often. > You can use the Vsync function which returns the number of VSyncs since bootup (1/60 or 1/50th per second, NTSC/PAL), HSyncs for TV scanlines and RCnt for anything in between. -- == James_Russell@scee.sony.co.uk ph: +44 (20) 7447-1626 - fax: 7390 4324 == Tools and Middleware Licensing Manager - Sony Computer Entertainment Europe Many people think they are thinking, when they are really only rearranging their prejudices.