Click here to Skip to main content
16,005,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Thread is not creating the Progress Dialog Pin
ptr_Electron17-Jul-08 22:12
ptr_Electron17-Jul-08 22:12 
AnswerRe: Thread is not creating the Progress Dialog [modified] Pin
Mark Salsbery17-Jul-08 7:38
Mark Salsbery17-Jul-08 7:38 
GeneralRe: Thread is not creating the Progress Dialog Pin
ptr_Electron17-Jul-08 18:19
ptr_Electron17-Jul-08 18:19 
AnswerRe: Thread is not creating the Progress Dialog Pin
aks.17-Jul-08 20:56
aks.17-Jul-08 20:56 
GeneralRe: Thread is not creating the Progress Dialog Pin
ptr_Electron18-Jul-08 0:11
ptr_Electron18-Jul-08 0:11 
QuestionProgrammatic Function Profiling Pin
Varghese Paul M17-Jul-08 1:51
Varghese Paul M17-Jul-08 1:51 
AnswerRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:03
mveCPallini17-Jul-08 2:03 
GeneralRe: Programmatic Function Profiling Pin
Cedric Moonen17-Jul-08 2:18
Cedric Moonen17-Jul-08 2:18 
This can only be applied if there's thread switching: you are measuring the time before the function and then after the function and assume that the difference is the time spent in the function. While this might seem correct, it's not always the case: the scheduler can decide in the middle of your function to switch to another thread, which will 'pause' your function for a certain amount of time. Thus you will take that time into account also, which is wrong.
A better approach would be to measure the time really spent for this thread. But unfortunately, I don't know how to do this (but I guess it is possible).

Cédric Moonen
Software developer

Charting control [v1.4]
OpenGL game tutorial in C++

GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:41
mveCPallini17-Jul-08 2:41 
GeneralRe: Programmatic Function Profiling Pin
Cedric Moonen17-Jul-08 2:45
Cedric Moonen17-Jul-08 2:45 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 3:01
mveCPallini17-Jul-08 3:01 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:46
professionalRajesh R Subramanian17-Jul-08 2:46 
JokeRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:53
mveCPallini17-Jul-08 2:53 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 3:01
professionalRajesh R Subramanian17-Jul-08 3:01 
AnswerRe: Programmatic Function Profiling Pin
Hamid_RT17-Jul-08 2:10
Hamid_RT17-Jul-08 2:10 
AnswerRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:43
professionalRajesh R Subramanian17-Jul-08 2:43 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:49
mveCPallini17-Jul-08 2:49 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:55
professionalRajesh R Subramanian17-Jul-08 2:55 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 3:09
mveCPallini17-Jul-08 3:09 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 3:18
professionalRajesh R Subramanian17-Jul-08 3:18 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 3:30
mveCPallini17-Jul-08 3:30 
General[OT starts] Pin
Rajesh R Subramanian17-Jul-08 3:32
professionalRajesh R Subramanian17-Jul-08 3:32 
GeneralRe: [OT starts] Pin
CPallini17-Jul-08 3:38
mveCPallini17-Jul-08 3:38 
JokeRe: [OT starts] Pin
Rajesh R Subramanian17-Jul-08 3:57
professionalRajesh R Subramanian17-Jul-08 3:57 
JokeRe: [OT starts] Pin
CPallini17-Jul-08 4:01
mveCPallini17-Jul-08 4:01 

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.