473,401 Members | 2,146 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,401 software developers and data experts.

Precision timer

Hi!
I need some timer with precision of at least 0.1 ms. Is there any way to do
it
Nov 20 '05 #1
6 2209
search for QueryPerformanceCounter
http://support.microsoft.com/default...NoWebContent=1

The actual resolution of this counter depends on the computer hardware, but
these days, you'll get excellent results on most computers out there. If the
system doesn't support a high-performance hardware counter, I believe the
API defaults to an accuracy close to GetTickCount (apprx 10ms resolution).

-Rob Teixeira [MVP]

"Babich" <da*****@spansko.net> wrote in message
news:c5**********@brown.net4u.hr...
Hi!
I need some timer with precision of at least 0.1 ms. Is there any way to do it

Nov 20 '05 #2
search for QueryPerformanceCounter
http://support.microsoft.com/default...NoWebContent=1

The actual resolution of this counter depends on the computer hardware, but
these days, you'll get excellent results on most computers out there. If the
system doesn't support a high-performance hardware counter, I believe the
API defaults to an accuracy close to GetTickCount (apprx 10ms resolution).

-Rob Teixeira [MVP]

"Babich" <da*****@spansko.net> wrote in message
news:c5**********@brown.net4u.hr...
Hi!
I need some timer with precision of at least 0.1 ms. Is there any way to do it

Nov 20 '05 #3
* "Babich" <da*****@spansko.net> scripsit:
I need some timer with precision of at least 0.1 ms. Is there any way to do


See:

<URL:http://www.mentalis.org/soft/class.qpx?id=8>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
* "Babich" <da*****@spansko.net> scripsit:
I need some timer with precision of at least 0.1 ms. Is there any way to do


See:

<URL:http://www.mentalis.org/soft/class.qpx?id=8>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
"Babich" <da*****@spansko.net> schrieb
Hi!
I need some timer with precision of at least 0.1 ms. Is there any way
to do it


Menu edit -> Find&Replace -> Find symbol: "Timer". You'll find three.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
"Babich" <da*****@spansko.net> schrieb
Hi!
I need some timer with precision of at least 0.1 ms. Is there any way
to do it


Menu edit -> Find&Replace -> Find symbol: "Timer". You'll find three.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7

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

Similar topics

2
by: Brian van den Broek | last post by:
Hi all, I guess it is more of a maths question than a programming one, but it involves use of the decimal module, so here goes: As a self-directed learning exercise I've been working on a...
3
by: Szabolcs Nagy | last post by:
I have to measure the time of a while loop, but with time.clock i always get 0.0s, although python manual sais: "this is the function to use for benchmarking Python or timing algorithms" So i...
5
by: DAVID SCHULMAN | last post by:
I've been trying to perform a calculation that has been running into an underflow (insufficient precision) problem in Microsoft Excel, which calculates using at most 15 significant digits. For this...
2
by: WeAreBorg | last post by:
How can I create it? Thanks in advance
6
by: Babich | last post by:
Hi! I need some timer with precision of at least 0.1 ms. Is there any way to do it
2
by: rupert | last post by:
i've got the following code: #include <iostream> #include <string> #include <vector> #include <iomanip> using namespace std; int main(double argc, char* argv) { double r = 0.01;
23
by: Arnaud Delobelle | last post by:
Hi all, I want to know the precision (number of significant digits) of a float in a platform-independent manner. I have scoured through the docs but I can't find anything about it! At the...
0
by: =?GB2312?B?zPC5zw==?= | last post by:
Howdy, I use python2.5 in WindowsXP. If using time.time() as timer, it seems the maximum precision is about 10-12ms. Maybe this is caused by the time slice defined in process scheduler. However,...
0
by: James Mills | last post by:
On Wed, Oct 29, 2008 at 12:14 PM, 甜瓜 <littlesweetmelon@gmail.comwrote: On the win32 platform should you not be using time.clock vs. time.time ? --JamesMills -- -- -- "Problems are...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.