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

# readAttributeUpTime(completionHandler:)

## Declaration

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

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