This code will help you determine what phone or device is using your app. In your ViewController put this under your imports In ViewDidLoad or somewhere else as needed you can call to the above with Sorry but I do not remember the location that I originally found this.

I specifically use this in an iOS app but you should be able to use this in iOS or Mac OS The first function will get the Uptime of the system in seconds while the second function will convert the seconds into a easier to read/understand format.