---
title: "init(timestamp:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlcounterresulttimestamp/init(timestamp:)"
---

# init(timestamp:)

Creates a timestamp result from a value.

## Declaration

```swift
init(timestamp: UInt64)
```

## Parameters

- `timestamp`: A timestamp value from a counter sample buffer.

## Discussion

Discussion Metal creates MTLCounterResultTimestamp instances for you when you resolve the counter set’s data (see Converting a GPU’s counter data into a readable format). There’s no reason for you to manually create one in your app.

## See Also

### Swift support

- [init()](metal/mtlcounterresulttimestamp/init().md)
