Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use QueryPerformanceCounter

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
HI, just wondering what library or header file I should include in order to use the QueryPerformanceCounter and QueryPerformanceFrequency function. And does anyone know What LARGE_INTERGER is?
 
Include the windows.h header only, no library necessary (it uses the kernel32.lib default library).

From the documentation:

The LARGE_INTEGER structure is used to represent a 64-bit signed integer value.

typedef union _LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
};
LONGLONG QuadPart;
} LARGE_INTEGER;

Members:
LowPart
Specifies the low-order 32 bits.
HighPart
Specifies the high-order 32 bits.
QuadPart
Specifies a 64-bit signed integer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top