<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTPerformanceMetric/wallClockTime",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@XCTPerformanceMetric_WallClockTime"
  },
  "title" : "wallClockTime"
}
-->

# wallClockTime

A performance metric that records the time in seconds to execute a block of code.

```
static let wallClockTime: XCTPerformanceMetric
```

---

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)