🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2144

SetTimer

#2144
From: Robin Burrows
Date: Tue, 06 Oct 1998 00:00
11 lines
1154 bytes
Hello,

I'm trying to set up a timer with the following line:
SetTimer (hwnd, 1, 1000/30, NULL);
(30 interrupts per second) but the interval is nothing like that. For
example, I process 90 interrupts which should take 3 seconds, but it
takes more like 15. I am using a fprintf in my WM_TIMER, but the file
remains open so the buffering should absorb it, there is no other
lengthy code in there. What is the minimum gap between interrupts? Or am
I just being dense? Do I really have to use GetTickCount and compensate
for it myself?
Technical Details
Message-ID: <3619553C.11D5@bigfoot.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103bde,2b2eac0b958b7811,start
X-Google-Attributes: gid103bde,public
X-Google-Thread: 113dfb,2b2eac0b958b7811,start
X-Google-Attributes: gid113dfb,public
From: Robin Burrows <rburrows@bigfoot.com>
Subject: SetTimer
Date: 1998/10/06
Message-ID: <3619553C.11D5@bigfoot.com>
X-Deja-AN: 398081111
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Virgin Net Usenet Service       
Mime-Version: 1.0
Reply-To: rburrows@bigfoot.com
Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.cpp.winapi