<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTIME_COMPARE_INLINE",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@macro@CMTIME_COMPARE_INLINE"
  },
  "title" : "CMTIME_COMPARE_INLINE"
}
-->

# CMTIME_COMPARE_INLINE

Returns a Boolean value that indicates whether the specified comparison is true.

```
#define CMTIME_COMPARE_INLINE(time1, comparator, time2)
```

## Discussion

The following code demonstrates how to use this macro to determine if the first time is less than or equal to the second time:

```objc
CMTIME_COMPARE_INLINE(time1, <=, time2)
```

---

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)