How to get cpu usage percentage in macos with Swift?

Refresh

April 2019

Views

122 time

1

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