Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: focusing messagebox Pin
Rajesh R Subramanian30-Mar-09 2:05
professionalRajesh R Subramanian30-Mar-09 2:05 
GeneralRe: focusing messagebox Pin
gamefreak229130-Mar-09 3:18
gamefreak229130-Mar-09 3:18 
AnswerRe: focusing messagebox Pin
Rajesh R Subramanian30-Mar-09 3:42
professionalRajesh R Subramanian30-Mar-09 3:42 
QuestionSMTP C++ Pin
jcy809629-Mar-09 14:09
jcy809629-Mar-09 14:09 
AnswerRe: SMTP C++ Pin
Joe Woodbury29-Mar-09 15:18
professionalJoe Woodbury29-Mar-09 15:18 
Questiontime difference Pin
Sadaiyappan29-Mar-09 10:15
Sadaiyappan29-Mar-09 10:15 
AnswerRe: time difference Pin
Stuart Dootson29-Mar-09 10:43
professionalStuart Dootson29-Mar-09 10:43 
AnswerRe: time difference Pin
Luc Pattyn29-Mar-09 14:27
sitebuilderLuc Pattyn29-Mar-09 14:27 
Furthermore, unless you are building for debug, an optimizing compiler would detect there is no need to execute the for loop at all, since (1) the code inside does not depend on the index i, and does not have any side effects so it can be moved out of the loop; and (2) integerDivision is a local variable that does not get used afterwards, so there is no reason to perform the division even once.

One must be extremely cautious when trying to measure the time taken by elementary operations like that, since a small change in your code may lead to a much bigger change in the optimization, and possibly completely wrong conclusions.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


QuestionHelp not sure why. Pin
FISH78629-Mar-09 8:18
FISH78629-Mar-09 8:18 
AnswerRe: Help not sure why. Pin
Yusuf29-Mar-09 11:41
Yusuf29-Mar-09 11:41 
AnswerRe: Help not sure why. Pin
CPallini29-Mar-09 21:21
mveCPallini29-Mar-09 21:21 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 2:25
FISH78630-Mar-09 2:25 
QuestionRe: Help not sure why. Pin
CPallini30-Mar-09 3:13
mveCPallini30-Mar-09 3:13 
AnswerRe: Help not sure why. Pin
FISH78630-Mar-09 3:20
FISH78630-Mar-09 3:20 
GeneralRe: Help not sure why. Pin
David Crow30-Mar-09 4:16
David Crow30-Mar-09 4:16 
GeneralRe: Help not sure why. [modified] Pin
FISH78630-Mar-09 4:36
FISH78630-Mar-09 4:36 
GeneralRe: Help not sure why. Pin
David Crow30-Mar-09 4:54
David Crow30-Mar-09 4:54 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 4:59
FISH78630-Mar-09 4:59 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 13:36
FISH78630-Mar-09 13:36 
QuestionMultiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
ForNow29-Mar-09 7:18
ForNow29-Mar-09 7:18 
QuestionRe: Multiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
CPallini29-Mar-09 7:51
mveCPallini29-Mar-09 7:51 
AnswerRe: Multiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
ForNow29-Mar-09 12:18
ForNow29-Mar-09 12:18 
Questionhave you ever seen this error? Pin
cs6008929-Mar-09 2:59
cs6008929-Mar-09 2:59 
AnswerRe: have you ever seen this error? Pin
cs6008929-Mar-09 3:00
cs6008929-Mar-09 3:00 
AnswerRe: have you ever seen this error? Pin
CPallini29-Mar-09 3:49
mveCPallini29-Mar-09 3:49 

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.