OON: Precise timer function in WIn95/NT?

From: Roscoe A Bartlett (roscoe@andrew.cmu.edu)
Date: Sat Jan 16 1999 - 16:47:18 EST


Does anyone know of a precise timer function to be used in Windows 95 with
Microsoft Visual C++ 6.0? The provided standard library provides timing
as clock() / CLOCKS_PER_SEC but CLOCKS_PER_SEC is only 1000. So
theoretically this only gives a precision of 0.001 sec. However from
tests the accuracy is more like 0.05 sec (20 times worse). I know that
in some implementations CLOCKS_PER_SEC = 1000000 or a posible 1.0e-6 sec
precision.

Does anyone know of a way to get better timing precision in MS VC++ 6.0 on
Win95? Perhaps there is a third party library. I need these timings for
my research.

 --------------------------------------
| Roscoe Bartlett |
| Ph.D. student |
| Department of Chemical Engineering |
| Carnegie Mellon University |
| email: roscoe@andrew.cmu.edu |
 --------------------------------------



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:07 EST