Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with Sleep() in thread Pin
Stephen Hewitt4-Jan-07 14:58
Stephen Hewitt4-Jan-07 14:58 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger4-Jan-07 12:21
professionalChris Losinger4-Jan-07 12:21 
GeneralRe: Problems with Sleep() in thread Pin
Jörgen Sigvardsson4-Jan-07 14:09
Jörgen Sigvardsson4-Jan-07 14:09 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger4-Jan-07 14:28
professionalChris Losinger4-Jan-07 14:28 
GeneralRe: Problems with Sleep() in thread Pin
Jörgen Sigvardsson5-Jan-07 2:13
Jörgen Sigvardsson5-Jan-07 2:13 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger5-Jan-07 2:43
professionalChris Losinger5-Jan-07 2:43 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3165-Jan-07 8:47
acerunner3165-Jan-07 8:47 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger5-Jan-07 8:59
professionalChris Losinger5-Jan-07 8:59 
acerunner316 wrote:
I will still need a thread to loop a function call. And in that function will check QueryPerformanceCounter.


right

acerunner316 wrote:
But if posting a message takes longer than 6ms. Then QueryPerformanceCounter can only be as accurate as that.


right

maybe this article can help... scroll down to the bottom for a message-loop / QueryPerfCounter sample.


GeneralRe: Problems with Sleep() in thread Pin
acerunner3165-Jan-07 14:38
acerunner3165-Jan-07 14:38 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger5-Jan-07 17:19
professionalChris Losinger5-Jan-07 17:19 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3168-Jan-07 8:41
acerunner3168-Jan-07 8:41 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger8-Jan-07 8:55
professionalChris Losinger8-Jan-07 8:55 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3168-Jan-07 9:11
acerunner3168-Jan-07 9:11 
GeneralRe: Problems with Sleep() in thread Pin
Chris Losinger8-Jan-07 10:32
professionalChris Losinger8-Jan-07 10:32 
AnswerRe: Problems with Sleep() in thread Pin
Mark Salsbery4-Jan-07 12:55
Mark Salsbery4-Jan-07 12:55 
AnswerRe: Problems with Sleep() in thread Pin
ThatsAlok4-Jan-07 18:02
ThatsAlok4-Jan-07 18:02 
AnswerRe: Problems with Sleep() in thread Pin
Joe Woodbury4-Jan-07 19:00
professionalJoe Woodbury4-Jan-07 19:00 
AnswerRe: Problems with Sleep() in thread Pin
kasturi_haribabu4-Jan-07 19:07
kasturi_haribabu4-Jan-07 19:07 
GeneralRe: Problems with Sleep() in thread Pin
acerunner3165-Jan-07 8:43
acerunner3165-Jan-07 8:43 
AnswerRe: Problems with Sleep() in thread Pin
S Douglas5-Jan-07 1:30
professionalS Douglas5-Jan-07 1:30 
QuestionWPF, XAML, Expression Blend and MFC [modified] Pin
AAntix4-Jan-07 10:00
AAntix4-Jan-07 10:00 
Questiondoubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:31
ceejeeb4-Jan-07 8:31 
AnswerRe: doubel buffering with GDI problem Pin
Mark Salsbery4-Jan-07 8:36
Mark Salsbery4-Jan-07 8:36 
GeneralRe: doubel buffering with GDI problem Pin
ceejeeb4-Jan-07 8:38
ceejeeb4-Jan-07 8:38 
GeneralRe: doubel buffering with GDI problem Pin
Mark Salsbery4-Jan-07 8:42
Mark Salsbery4-Jan-07 8:42 

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.