473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

GetTickCount problem P4 hyperthread


Vladimir Nesterovsky wrote:
If you realy need to measure short time use rathe
QueryPerformanceCounter
and QueryPerformanceFrequency instead of GetTickCount.
--
Vladimir Nesterovsky
e-mail: vl******@nesterovsky-bros.com
home: http://www.nesterovsky-bros.com [/b]


Thank You, That is a good solution yes, and I have to test if th
behaviour is ok (when I get to my computer at work). GetTickCoun
resolution is not good, but i just has to measure if a hardware devic
respond or not, and I do not need high resolution, a brute fix for m
problem was to insert Sleep(10) between two tickCount query. What i
realy bother me is god old GetTickCount can trigger such problems (on
of my programs returned with serious bugreport, I search and tested i
any circumstances, the bug does not apear, after that I get a ne
computer to be in the same condition like the client, and the bug wa
there... (somethime negative elapsed time) ... :(...
-
Dark7
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 17 '05 #1
1 1357
try Enviroment::TickCount also...:)

"Dark74" wrote:

Vladimir Nesterovsky wrote:
If you realy need to measure short time use rather
QueryPerformanceCounter
and QueryPerformanceFrequency instead of GetTickCount.
--
Vladimir Nesterovsky
e-mail: vl******@nesterovsky-bros.com
home: http://www.nesterovsky-bros.com [/b]


Thank You, That is a good solution yes, and I have to test if the
behaviour is ok (when I get to my computer at work). GetTickCount
resolution is not good, but i just has to measure if a hardware device
respond or not, and I do not need high resolution, a brute fix for my
problem was to insert Sleep(10) between two tickCount query. What is
realy bother me is god old GetTickCount can trigger such problems (one
of my programs returned with serious bugreport, I search and tested in
any circumstances, the bug does not apear, after that I get a new
computer to be in the same condition like the client, and the bug was
there... (somethime negative elapsed time) ... :(....

--
Dark74
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chua Wen Ching | last post by:
Hi there. I think in vb6, i can use GetTickCount easily by accessing the user32.dll (hmm.. can't remember what is the dll name, but something like that) Is there any code in the...
1
by: Raghu | last post by:
How can I figure out programmatically if a machine is hyperthread enabled or not? Thanks. Raghu/..
2
by: farsad nasseri | last post by:
Hi We're having some timing issues with one of our longer running software programs. I am trying to measure how many times my computer can loop through before one millisecond has passed by and...
1
by: Inebas | last post by:
Hi Guys, I got an assignment to calculate the execute time difference a code written with threads and one without. I got the algorithm working but GetTickCount() return the same number before and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.