mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-09-24 15:54:12 +00:00
24 lines
No EOL
323 B
C++
24 lines
No EOL
323 B
C++
#include "pdtimer.h"
|
|
|
|
__int64 pdReadResolution(void)
|
|
{
|
|
__int64 myfeq;
|
|
LARGE_INTEGER feq;
|
|
|
|
QueryPerformanceFrequency( &feq);
|
|
myfeq = feq.QuadPart;
|
|
|
|
return myfeq;
|
|
}
|
|
|
|
__int64 pdReadTimer(void)
|
|
{
|
|
__int64 mynow;
|
|
|
|
LARGE_INTEGER now;
|
|
|
|
QueryPerformanceCounter( &now );
|
|
mynow = now.QuadPart;
|
|
|
|
return mynow;
|
|
} |