The amount of time the system has been awake since the last time it was restarted.
SDKs
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
var systemUptime: Time Interval { get }
The amount of time the system has been awake since the last time it was restarted.
SDKs
Framework
var systemUptime: Time Interval { get }
var processor Count: Int
The number of processing cores available on the computer.
var active Processor Count: Int
The number of active processing cores available on the computer.
var physical Memory: UInt64
The amount of physical memory on the computer in bytes.