1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 use shared::basetsd::PULONG64; 7 use shared::minwindef::{BOOL, PULONG, USHORT}; 8 use um::winnt::{HANDLE, PULONGLONG}; 9 extern "system" { QueryThreadCycleTime( ThreadHandle: HANDLE, CycleTime: PULONG64, ) -> BOOL10 pub fn QueryThreadCycleTime( 11 ThreadHandle: HANDLE, 12 CycleTime: PULONG64, 13 ) -> BOOL; QueryProcessCycleTime( ProcessHandle: HANDLE, CycleTime: PULONG64, ) -> BOOL14 pub fn QueryProcessCycleTime( 15 ProcessHandle: HANDLE, 16 CycleTime: PULONG64, 17 ) -> BOOL; QueryIdleProcessorCycleTime( BufferLength: PULONG, ProcessorIdleCycleTime: PULONG64, ) -> BOOL18 pub fn QueryIdleProcessorCycleTime( 19 BufferLength: PULONG, 20 ProcessorIdleCycleTime: PULONG64, 21 ) -> BOOL; QueryIdleProcessorCycleTimeEx( Group: USHORT, BufferLength: PULONG, ProcessorIdleCycleTime: PULONG64, ) -> BOOL22 pub fn QueryIdleProcessorCycleTimeEx( 23 Group: USHORT, 24 BufferLength: PULONG, 25 ProcessorIdleCycleTime: PULONG64, 26 ) -> BOOL; QueryUnbiasedInterruptTime( UnbiasedTime: PULONGLONG, ) -> BOOL27 pub fn QueryUnbiasedInterruptTime( 28 UnbiasedTime: PULONGLONG, 29 ) -> BOOL; 30 } 31