News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Does MASM support the WINAPI QueryThreadCycleTime ?

Started by MtheK, February 05, 2014, 12:10:47 AM

Previous topic - Next topic

MtheK

  I can't seem to find it in .inc, .lib, etc.

  GetThreadTimes works great and helps to explain batch response time,
matches PROCMONs' 'Thread Exit' times, GetTickCount, and GetLocalTime,
but all are Wall-Clock times.

  QueryThreadCycleTime appears to be CPUR (real) in the IBM M/F world,
which helps to see more "absolute" (non-interference) and "average" times
to determine if any coding tuning actually helps...

jj2007

It's Vista upwards. If that isn't a problem, link to it dynamically (Kernel32.dll).

dedndave


TWell

Is that function wrapper of NtQueryInformationThread from ntdll.dll with ThreadInformationClass of ThreadCycleTime ?

MtheK

  Thankx for the NT info and dynamic CALL suggestion; those, w/GetVersionEx & DUMPBIN, works great.