---
title: systemUptime
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/processinfo/systemuptime
---

# systemUptime

The amount of time the system has been awake since the last time it was restarted.

## Declaration

```swift
var systemUptime: TimeInterval { get }
```

## Discussion

Discussion important: This API has the potential of being misused to access device signals to try to identify the device or user, also known as fingerprinting. Regardless of whether a user gives your app permission to track, fingerprinting is not allowed. When you use this API in your app or third-party SDK (an SDK not provided by Apple), declare your usage and the reason for using the API in your app or third-party SDK’s PrivacyInfo.xcprivacy file. For more information, including the list of valid reasons for using the API, see Describing use of required reason API.

## See Also

### Getting computer information

- [processorCount](foundation/processinfo/processorcount.md)
- [activeProcessorCount](foundation/processinfo/activeprocessorcount.md)
- [physicalMemory](foundation/processinfo/physicalmemory.md)
- [isDeviceCertified(for:)](foundation/processinfo/isdevicecertified(for:).md)
- [hasPerformanceProfile(_:)](foundation/processinfo/hasperformanceprofile(_:).md)
