Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: threads and their time slots. Pin
Roger Stoltz3-Jul-09 8:41
Roger Stoltz3-Jul-09 8:41 
GeneralRe: threads and their time slots. Pin
Stuart Dootson3-Jul-09 8:50
professionalStuart Dootson3-Jul-09 8:50 
GeneralRe: threads and their time slots. Pin
Roger Stoltz3-Jul-09 8:55
Roger Stoltz3-Jul-09 8:55 
GeneralRe: threads and their time slots. Pin
Souldrift5-Jul-09 21:37
Souldrift5-Jul-09 21:37 
GeneralRe: threads and their time slots. Pin
Stuart Dootson5-Jul-09 21:43
professionalStuart Dootson5-Jul-09 21:43 
GeneralRe: threads and their time slots. [modified] Pin
Souldrift5-Jul-09 22:19
Souldrift5-Jul-09 22:19 
GeneralRe: threads and their time slots. Pin
Stuart Dootson5-Jul-09 23:30
professionalStuart Dootson5-Jul-09 23:30 
AnswerRe: threads and their time slots. Pin
Roger Stoltz3-Jul-09 8:39
Roger Stoltz3-Jul-09 8:39 
Souldrift wrote:
it always jumps 15,6ms forward


I doubt the granularity and accuracy of the time value returned by ::GetSystemTimeAsFileTime(). Even though the FILETIME structure is a time value where the least significant bit represents 100 nanoseconds, it doesn't mean that it has an accuracy of 100 nanosecs.
It's like looking at your watch, measuring a time with the needle showing seconds and then multiplying the value by 1,000,000 and claim you measured with microsecond accuracy.

For time measurements of this kind you should you the performance timer; ::QueryPerformanceCounter() and ::QueryPerformanceFrequency().
It will give you the best accuracy available on your hardware.
Read here[^] for more info on the high resolution performance counter.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


QuestionHow to make truncation in C++ Pin
alikalik2-Jul-09 22:06
alikalik2-Jul-09 22:06 
AnswerRe: How to make truncation in C++ Pin
Rajesh R Subramanian2-Jul-09 22:09
professionalRajesh R Subramanian2-Jul-09 22:09 
GeneralRe: How to make truncation in C++ Pin
alikalik2-Jul-09 22:14
alikalik2-Jul-09 22:14 
GeneralRe: How to make truncation in C++ Pin
Rajesh R Subramanian2-Jul-09 22:16
professionalRajesh R Subramanian2-Jul-09 22:16 
AnswerRe: How to make truncation in C++ Pin
Stuart Dootson2-Jul-09 22:16
professionalStuart Dootson2-Jul-09 22:16 
AnswerRe: How to make truncation in C++ Pin
Michael Schubert2-Jul-09 22:19
Michael Schubert2-Jul-09 22:19 
GeneralRe: How to make truncation in C++ Pin
CPallini2-Jul-09 22:36
mveCPallini2-Jul-09 22:36 
GeneralRe: How to make truncation in C++ Pin
Rajesh R Subramanian2-Jul-09 22:50
professionalRajesh R Subramanian2-Jul-09 22:50 
GeneralRe: How to make truncation in C++ Pin
CPallini2-Jul-09 22:56
mveCPallini2-Jul-09 22:56 
AnswerRe: How to make truncation in C++ Pin
KarstenK3-Jul-09 3:21
mveKarstenK3-Jul-09 3:21 
AnswerRe: How to make truncation in C++ Pin
Dan3-Jul-09 10:21
Dan3-Jul-09 10:21 
GeneralRe: How to make truncation in C++ Pin
Michael Schubert3-Jul-09 12:19
Michael Schubert3-Jul-09 12:19 
QuestionHow to make a LONGLONG array ? Pin
krish_kumar2-Jul-09 21:25
krish_kumar2-Jul-09 21:25 
AnswerRe: How to make a LONGLONG array ? Pin
«_Superman_»2-Jul-09 21:30
professional«_Superman_»2-Jul-09 21:30 
GeneralRe: How to make a LONGLONG array ? Pin
krish_kumar2-Jul-09 21:50
krish_kumar2-Jul-09 21:50 
QuestionGetPrivateProfileString() problem Pin
ashish8patil2-Jul-09 20:22
ashish8patil2-Jul-09 20:22 
AnswerRe: GetPrivateProfileString() problem Pin
«_Superman_»2-Jul-09 20:34
professional«_Superman_»2-Jul-09 20:34 

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.