---
title: "readAttributeUpTime(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustergeneraldiagnostics/readattributeuptime(completion:)"
---

# readAttributeUpTime(completion:)

## Declaration

```swift
func readAttributeUpTime(completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeUpTime() async throws -> NSNumber
```
