delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
In-Reply-To: | <200701100505.l0A551oG024725@delorie.com> |
Subject: | Re: Performance enhancement for gettimeofday()? |
To: | djgpp AT delorie DOT com |
X-Mailer: | Lotus Notes Release 6.5.4 CCH5 September 12, 2005 |
Message-ID: | <OF57448C09.1477D1B4-ON8725725F.00587AB9-8725725F.0058E938@seagate.com> |
From: | Gordon DOT Schumacher AT seagate DOT com |
Date: | Wed, 10 Jan 2007 09:11:09 -0700 |
X-MIMETrack: | Serialize by Router on SV-GW1/Seagate Internet(Release 7.0.1 HF29|March 07, 2006) at |
01/10/2007 08:11:14 AM | |
MIME-Version: | 1.0 |
X-Proofpoint-FWRule: | outbound2 |
X-Proofpoint-Virus-Version: | vendor=fsecure engine=4.65.5446:2.3.11,1.2.37,4.0.164 definitions=2007-01-10_03:2007-01-10,2007-01-09,2007-01-10 signatures=0 |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Rod Pemberton wrote on Tue, 9 Jan 2007 at 03:46:03 -0500: # I believe this it the math you'll need: # # 14.318Mhz=4*3.58Mhz=4*(4.5Mhz*455/572) # (4.5Mhz US TV bandwith/channel, 455 colorburst phase changes/line, 572 # total lines/frame including sync) # 14.318Mhz/12=1.93182Mhz # 1.93182Mhz/65536=18.2065Hz *blink* I came across some vague hand-waving references about this oscillator having something to do with video signals, but nothing I could make any sense out of much less use. So much for "someone much more familiar"... :) I'll put this math into the code and try it out again; hopefully this will further reduce the drift that I'm seeing (and thus reduce how often I need to requery the DOS clock). As it is, I've already cut 20% off the performance in my program! (It makes heavy use of pth_nap() which uses gettimeofday() internally.)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |