1
0

pdtimer.cpp 323 B

123456789101112131415161718192021222324
  1. #include "pdtimer.h"
  2. __int64 pdReadResolution(void)
  3. {
  4. __int64 myfeq;
  5. LARGE_INTEGER feq;
  6. QueryPerformanceFrequency( &feq);
  7. myfeq = feq.QuadPart;
  8. return myfeq;
  9. }
  10. __int64 pdReadTimer(void)
  11. {
  12. __int64 mynow;
  13. LARGE_INTEGER now;
  14. QueryPerformanceCounter( &now );
  15. mynow = now.QuadPart;
  16. return mynow;
  17. }