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

# timeSnapshot(with:completion:)

Command TimeSnapshot

## Declaration

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

```swift
func timeSnapshot(with params: MTRGeneralDiagnosticsClusterTimeSnapshotParams?) async throws -> MTRGeneralDiagnosticsClusterTimeSnapshotResponseParams
```

## Discussion

Discussion This command MAY be used by a client to obtain a correlated view of both System Time, and, if currently synchronized and supported, “wall clock time” of the server.
