These packages are available as a package collection, usable in Xcode or SwiftPM.
Swift package to retrieve realtime information on CPU energy consumption on Apple platforms using the CPU's Closed Loop Performance Controller (CLPC).
1 package.