Click here to Skip to main content
14,866,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AMD or Intel Pin
_Flaviu23-Oct-19 1:28
Member_Flaviu23-Oct-19 1:28 
GeneralRe: AMD or Intel Pin
Richard MacCutchan23-Oct-19 1:31
mveRichard MacCutchan23-Oct-19 1:31 
GeneralRe: AMD or Intel Pin
_Flaviu23-Oct-19 1:51
Member_Flaviu23-Oct-19 1:51 
GeneralRe: AMD or Intel Pin
Richard MacCutchan23-Oct-19 2:22
mveRichard MacCutchan23-Oct-19 2:22 
GeneralRe: AMD or Intel Pin
_Flaviu23-Oct-19 2:33
Member_Flaviu23-Oct-19 2:33 
GeneralRe: AMD or Intel Pin
Richard MacCutchan23-Oct-19 4:42
mveRichard MacCutchan23-Oct-19 4:42 
GeneralRe: AMD or Intel Pin
_Flaviu23-Oct-19 6:53
Member_Flaviu23-Oct-19 6:53 
GeneralRe: AMD or Intel Pin
Richard MacCutchan23-Oct-19 20:45
mveRichard MacCutchan23-Oct-19 20:45 
_Flaviu wrote:
I noticed that GetSystemInfo is taking a time
That is most likely because it has to go to the registry to get the information. You have placed that code in the wrong place. It should be called once at the beginning of the program to set a global or class variable that can then be tested at processor speed.

However, the chances of you being able to adjust the speed of your code at the point you show is not very likely. The compiler will optimise any code as much as possible, and whichever processor executes that code will further optimise it through the use of its own pipelining mechanism. Your time would be better spent working on real problems.
SuggestionRe: AMD or Intel Pin
David Crow24-Oct-19 15:26
MemberDavid Crow24-Oct-19 15:26 
GeneralRe: AMD or Intel Pin
_Flaviu24-Oct-19 19:58
Member_Flaviu24-Oct-19 19:58 
QuestionRe: AMD or Intel Pin
David Crow23-Oct-19 2:16
MemberDavid Crow23-Oct-19 2:16 
AnswerRe: AMD or Intel Pin
_Flaviu23-Oct-19 2:35
Member_Flaviu23-Oct-19 2:35 
GeneralRe: AMD or Intel Pin
harold aptroot23-Oct-19 5:48
Memberharold aptroot23-Oct-19 5:48 
AnswerRe: AMD or Intel Pin
Daniel Pfeffer23-Oct-19 21:55
professionalDaniel Pfeffer23-Oct-19 21:55 
GeneralRe: AMD or Intel Pin
_Flaviu23-Oct-19 23:27
Member_Flaviu23-Oct-19 23:27 
Questionc++ Pin
Resul Sebili21-Oct-19 11:03
MemberResul Sebili21-Oct-19 11:03 
AnswerRe: c++ Pin
k505421-Oct-19 11:18
mvek505421-Oct-19 11:18 
AnswerRe: c++ Pin
CPallini21-Oct-19 21:44
mveCPallini21-Oct-19 21:44 
AnswerRe: c++ Pin
Richard MacCutchan21-Oct-19 22:39
mveRichard MacCutchan21-Oct-19 22:39 
AnswerRe: c++ Pin
David Crow22-Oct-19 2:01
MemberDavid Crow22-Oct-19 2:01 
Questionc++ enum Pin
Fotsing16-Oct-19 1:40
MemberFotsing16-Oct-19 1:40 
AnswerRe: c++ enum Pin
CPallini16-Oct-19 2:22
mveCPallini16-Oct-19 2:22 
QuestionCCombobox MFC vc++ Pin
Member 1457555611-Oct-19 1:46
MemberMember 1457555611-Oct-19 1:46 
AnswerRe: CCombobox MFC vc++ Pin
Victor Nijegorodov11-Oct-19 2:50
MemberVictor Nijegorodov11-Oct-19 2:50 
GeneralRe: CCombobox MFC vc++ Pin
Member 1457555611-Oct-19 3:39
MemberMember 1457555611-Oct-19 3:39 

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.