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

# timeSnapshot(completion:)

## Declaration

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

```swift
func timeSnapshot() async throws -> MTRGeneralDiagnosticsClusterTimeSnapshotResponseParams
```
