---
title: CMTIME_COMPARE_INLINE
framework: coremedia
role: symbol
role_heading: Macro
path: coremedia/cmtime_compare_inline
---

# CMTIME_COMPARE_INLINE

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

## Declaration

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

## Discussion

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: CMTIME_COMPARE_INLINE(time1, <=, time2)

## See Also

### Comparing Times

- [CMTimeCompare(_:_:)](coremedia/cmtimecompare(_:_:).md)
- [CMTimeMaximum(_:_:)](coremedia/cmtimemaximum(_:_:).md)
- [CMTimeMinimum(_:_:)](coremedia/cmtimeminimum(_:_:).md)
