VirtualBox

Changeset 70405 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Jan 1, 2018 5:45:14 PM (7 years ago)
Author:
vboxsync
Message:

IPRT/time-win.cpp: Use RtlGetInterruptTimePrecise for RTTimeSystemNanoTS when available (based on RDTSC) and using KUSER_SHARED_DATA from nt.h instead of duplicating it and its address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r70347 r70405  
    677677    ULONG                   LangGenerationCount;                        /**< 0x3a4 */
    678678    ULONGLONG               Reserved4;                                  /**< 0x3a8 */
    679     ULONGLONG volatile      InterruptTimeBias;                          /**< 0x3b0 */
     679    ULONGLONG volatile      InterruptTimeBias;                          /**< 0x3b0 - What QueryUnbiasedInterruptTimePrecise
     680                                                                         * subtracts from interrupt time. */
    680681    ULONGLONG volatile      QpcBias;                                    /**< 0x3b8 */
    681682    ULONG volatile          ActiveProcessorCount;                       /**< 0x3c0 */
     
    28132814NTSYSAPI uint64_t NTAPI RtlGetSystemTimePrecise(VOID);
    28142815typedef uint64_t (NTAPI * PFNRTLGETSYSTEMTIMEPRECISE)(VOID);
     2816NTSYSAPI uint64_t NTAPI RtlGetInterruptTimePrecise(uint64_t *puPerfTime);
     2817typedef uint64_t (NTAPI * PFNRTLGETINTERRUPTTIMEPRECISE)(uint64_t *);
     2818NTSYSAPI BOOLEAN NTAPI RtlQueryUnbiasedInterruptTime(uint64_t *puInterruptTime);
     2819typedef BOOLEAN (NTAPI * PFNRTLQUERYUNBIASEDINTERRUPTTIME)(uint64_t *);
    28152820
    28162821RT_C_DECLS_END
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