How to get cpu usage percentage in macos with Swift?


April 2019


122 time


I'm trying to do an activity monitor for MacOS (I know that there is a mac app called activity monitor that tell that) so I want to get the cpu usage percentage with Swift. I found some similar questions but they only work with iOS. I also found a question in Objective-C but not in Swift and I don't understand very well Objective-C (I'm a Swift person).

0 answers