Changeset 60143 in vbox for trunk/src/VBox
- Timestamp:
- Mar 22, 2016 10:49:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
r57358 r60143 5 5 6 6 /* 7 * Copyright (C) 2006-201 5Oracle Corporation7 * Copyright (C) 2006-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 55 55 * count of these calls, we have to do two calls that cancel each other out. 56 56 */ 57 ULONG ulResolution1 = g_pfnrtNtExSetTimerResolution(ulTimeInc, TRUE); 58 ULONG ulResolution2 = g_pfnrtNtExSetTimerResolution(0 /*ignored*/, FALSE); 59 AssertMsg(ulResolution1 == ulResolution2, ("%ld, %ld\n", ulResolution1, ulResolution2)); /* not supposed to change it! */ 60 return ulResolution2 * 100; /* NT -> ns */ 57 g_pfnrtNtExSetTimerResolution(ulTimeInc, TRUE); 58 ULONG ulResolution = g_pfnrtNtExSetTimerResolution(0 /*ignored*/, FALSE); 59 return ulResolution * 100; /* NT -> ns */ 61 60 } 62 61
Note:
See TracChangeset
for help on using the changeset viewer.