Roscoe A Bartlett <roscoe@andrew.cmu.edu> writes:
> 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.
WinNT makes available two routines that measure time in
100 nanosecond blocks. Both combine two 32-bit values
to form a 64-bit count of 100-nanosecond time units.
Not supported in Win95. (Don't know about Win98)
GetThreadTimes( . . . )
GetProcessTimes( . . . )
BOOL GetThreadTimes(
HANDLE hThread, // the thread of interest
LPFILETIME lpCreationTime, // when created
LPFILETIME lpExitTime, // when destroyed
LPFILETIME lpKernelTime, // thread's time in kernel mode
LPFILETIME lpUserTime // thread's time in user mode
);
BOOL GetProcessTimes(
HANDLE hProcess, // the process of interest
LPFILETIME lpCreationTime, // when created
LPFILETIME lpExitTime, // when exited
LPFILETIME lpKernelTime, // time in kernel mode
LPFILETIME lpUserTime // time in user mode
);
Nigel
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:07 EST