Re: [ntdev] Re: [ntdev] KeQueryPerformanceCounter Wraparound question

You are correct - this is what I get for replying from memory!

Anyway, the point is the same: the OP is screwing up the math and has drawn incorrect conclusions that point to the sign bit of this value

Sent from Surface Pro

From: Tim Roberts
Sent: ‎Friday‎, ‎July‎ ‎24‎, ‎2015 ‎2‎:‎10‎ ‎PM
To: Windows System Software Devs Interest List

Marion Bond wrote:

If you used QuadPart, then the data type is ULONGLONG and there is no
sign bit

Actually, it’s not. LARGE_INTEGER is signed, and QuadPart is LONGLONG.
There is a ULARGE_INTEGER, but very few APIs use it.

However, that’s not the issue here, because even with the fastest clock
it has ever used, KeQueryPerformaceCounter will not roll over for
another 6,000 years.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer