473,383 Members | 1,862 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,383 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 2207
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.