Click here to Skip to main content
15,890,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFile association Pin
act_x2-Dec-02 11:52
act_x2-Dec-02 11:52 
GeneralRe: File association Pin
Selevercin2-Dec-02 12:08
Selevercin2-Dec-02 12:08 
Generaltitle bar Pin
Anonymous2-Dec-02 11:21
Anonymous2-Dec-02 11:21 
GeneralRe: title bar Pin
Pavel Klocek2-Dec-02 11:26
Pavel Klocek2-Dec-02 11:26 
GeneralRe: title bar Pin
Anonymous2-Dec-02 11:35
Anonymous2-Dec-02 11:35 
GeneralSocket help.. Pin
RobJones2-Dec-02 11:02
RobJones2-Dec-02 11:02 
GeneralRe: Socket help.. Pin
valikac2-Dec-02 14:29
valikac2-Dec-02 14:29 
GeneralCode Timing Question Pin
_Kal-El_2-Dec-02 11:00
_Kal-El_2-Dec-02 11:00 
Im having a problem with timing a function. Here's how Im doing it now:
<br />
	const double LOOP_MAX = 999;<br />
	LARGE_INTEGER tCS,tCE;<br />
	double Ang = 0,Res;<br />
<br />
	QueryPerformanceCounter(&tCS);<br />
	<br />
	while (Ang++ < LOOP_MAX)<br />
		CMObj::Function(Ang, Res);<br />
<br />
	QueryPerformanceCounter(&tCE);<br />
<br />
	tCS.QuadPart = tCE.QuadPart- tCS.QuadPart;<br />
	QueryPerformanceFrequency(&tCE);<br />
<br />
	double t = (double)tCS.QuadPart / tCE.QuadPart;<br />
<br />
	double ps = LOOP_MAX / t;<br />


When I run the LOOP_MAX at 1 - 999, I get about 393,000 calls per second. But as I raise LOOP_MAX from there my calls per second drop (At 99,999 I get only 85,022). Is there something wrong with the way Im calculating this, or is there a reason why my call time would drop?
GeneralRe: Code Timing Question Pin
Kannan Kalyanaraman2-Dec-02 20:24
Kannan Kalyanaraman2-Dec-02 20:24 
GeneralFILETIME conversion/comparison Pin
#realJSOP2-Dec-02 10:34
mve#realJSOP2-Dec-02 10:34 
GeneralRe: FILETIME conversion/comparison Pin
Nitron2-Dec-02 11:08
Nitron2-Dec-02 11:08 
GeneralRe: FILETIME conversion/comparison Pin
Jamie Hale2-Dec-02 11:33
Jamie Hale2-Dec-02 11:33 
GeneralRe: FILETIME conversion/comparison Pin
Michael Dunn2-Dec-02 12:15
sitebuilderMichael Dunn2-Dec-02 12:15 
GeneralQueue problem (part2) Pin
ian_ok2-Dec-02 10:24
ian_ok2-Dec-02 10:24 
GeneralRe: Queue problem (part2) Pin
Christian Graus2-Dec-02 10:55
protectorChristian Graus2-Dec-02 10:55 
GeneralResizing a CFormView class Pin
Georgi Atanasov2-Dec-02 10:12
Georgi Atanasov2-Dec-02 10:12 
GeneralRe: Resizing a CFormView class Pin
Maximilien2-Dec-02 10:50
Maximilien2-Dec-02 10:50 
GeneralWrite to parallel port Pin
Shay Harel2-Dec-02 10:03
Shay Harel2-Dec-02 10:03 
Generalhelp: right mouse click pop up menu Pin
trustno12-Dec-02 8:50
trustno12-Dec-02 8:50 
GeneralRe: help: right mouse click pop up menu Pin
valikac2-Dec-02 8:57
valikac2-Dec-02 8:57 
GeneralRe: help: right mouse click pop up menu Pin
Jason Henderson2-Dec-02 9:16
Jason Henderson2-Dec-02 9:16 
GeneralRe: help: right mouse click pop up menu Pin
Nitron2-Dec-02 10:00
Nitron2-Dec-02 10:00 
GeneralWizardsheet - propertypage and AfxMessageBox Pin
André Dewispelaere2-Dec-02 8:35
André Dewispelaere2-Dec-02 8:35 
GeneralCListCtrl + Report View + ... Problem Pin
mickelthepickle2-Dec-02 8:00
mickelthepickle2-Dec-02 8:00 
GeneralRe: CListCtrl + Report View + ... Problem Pin
pranavamhari2-Dec-02 14:44
pranavamhari2-Dec-02 14:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.