title: How to get cpu usage percentage in macos with Swift?
body: <p>I'm trying to do an activity monitor for <strong>MacOS</strong> (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 href="https://stackoverflow.com/questions/6785069/">a question</a> in Objective-C but not in Swift and I don't understand very well Objective-C (I'm a Swift person).</p>