<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTPerformanceMeasurementTimestamp",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTPerformanceMeasurementTimestamp"
  },
  "title" : "XCTPerformanceMeasurementTimestamp"
}
-->

# XCTPerformanceMeasurementTimestamp

A point in time that captures the start or finish of a performance test iteration.

```
class XCTPerformanceMeasurementTimestamp
```

## Topics

### Initializers

[`convenience init()`](/documentation/XCTest/XCTPerformanceMeasurementTimestamp/init())

Intitializes a timestamp that represents the current time.

[`init(absoluteTime: UInt64, date: Date)`](/documentation/XCTest/XCTPerformanceMeasurementTimestamp/init(absoluteTime:date:))

Intitializes a timestamp that represents the provided time.

### Mach Absolute Time

[`var absoluteTimeNanoSeconds: UInt64`](/documentation/XCTest/XCTPerformanceMeasurementTimestamp/absoluteTimeNanoSeconds)

The nanoseconds component of the absolute time.

[`var absoluteTime: UInt64`](/documentation/XCTest/XCTPerformanceMeasurementTimestamp/absoluteTime)

The absolute time of the timestamp, which is the value of the mach absolute time clock.

### Date

[`var date: Date`](/documentation/XCTest/XCTPerformanceMeasurementTimestamp/date)

The timestamp’s representation as a date.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)