4 ms·
I/O Kit can be used for this. [1] [1] https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/PowerMgmt/PowerMgmt.html
by bluerobotcat 11y ago
I/O Kit can be used for this. [1]
[1] https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/PowerMgmt/PowerMgmt.html#//apple_ref/doc/uid/TP0000020-SW4 https://developer.apple.com/library/mac/documentation/Device... (I'm a bit surprised that the docs assume that the reader is implementing a driver. I have used I/O Kit in an app that was available on the App Store.)