<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCounterResultTimestamp",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@SA@MTLCounterResultTimestamp"
  },
  "title" : "MTLCounterResultTimestamp"
}
-->

# MTLCounterResultTimestamp

The data structure for storing the data you resolve from a timestamp counter set.

```
struct MTLCounterResultTimestamp
```

## Overview

For steps that explain how to resolve data from a counter set, such as [`timestamp`](/documentation/Metal/MTLCounterResultTimestamp/timestamp), see [Converting a GPU’s counter data into a readable format](/documentation/Metal/converting-a-gpus-counter-data-into-a-readable-format).

## Topics

### Timestamp values

[`timestamp`](/documentation/Metal/MTLCounterResultTimestamp/timestamp)

A timestamp value from a GPU at a particular point in time during an operation, typically at the beginning or ending of a render stage.

### Swift support

[`init()`](/documentation/Metal/MTLCounterResultTimestamp/init())

Creates a default timestamp result.

[`init(timestamp:)`](/documentation/Metal/MTLCounterResultTimestamp/init(timestamp:))

Creates a timestamp result from a value.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)