<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTMeasureOptions/InvocationOptions-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@E@XCTMeasurementInvocationOptions"
  },
  "title" : "XCTMeasureOptions.InvocationOptions"
}
-->

# XCTMeasureOptions.InvocationOptions

Test measurement options that control how measurement starts and stops.

```
struct InvocationOptions
```

## Topics

### Measurement Options

[`static var manuallyStart: XCTMeasureOptions.InvocationOptions`](/documentation/XCTest/XCTMeasureOptions/InvocationOptions-swift.struct/manuallyStart)

An invocation option that specifies that the test starts taking measurements when the `startMeasuring()` function is called.

[`static var manuallyStop: XCTMeasureOptions.InvocationOptions`](/documentation/XCTest/XCTMeasureOptions/InvocationOptions-swift.struct/manuallyStop)

An invocation option that specifies that the test stops taking measurements when the `stopMeasuring()` function is called.

### Initializers

[`init(rawValue: UInt)`](/documentation/XCTest/XCTMeasureOptions/InvocationOptions-swift.struct/init(rawValue:))

Creates a new instance with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)