VirtualBox

Changeset 9950 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jun 26, 2008 11:56:57 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32376
Message:

Corrected NtQueryTimerResolution (max resolution == the lower number), print the results in ns instead of 100ns units.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/ntGetTimerResolution.cpp

    r8245 r9950  
    3939extern "C" {
    4040/* from sysinternals. */
    41 NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MinimumResolution, OUT PULONG MaximumResolution, OUT PULONG CurrentResolution);
     41NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution, OUT PULONG MinimumResolution, OUT PULONG CurrentResolution);
    4242}
    4343
     
    4848    ULONG Max = ~0;
    4949    ULONG Cur = ~0;
    50     NtQueryTimerResolution(&Min, &Max, &Cur);
    51     printf("NtQueryTimerResolution -> Min=%lu Max=%lu Cur=%lu (100ns)\n", Min, Max, Cur);
     50    NtQueryTimerResolution(&Max, &Min, &Cur);
     51    printf("NtQueryTimerResolution -> Max=%lu00ns Min=%lu00ns Cur=%lu00ns\n", Min, Max, Cur);
    5252
    5353#if 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette