<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNowPlayingSportsClock",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPNowPlayingSportsClock"
  },
  "title" : "CPNowPlayingSportsClock"
}
-->

# CPNowPlayingSportsClock

A representation of the amount of time elapsed so far in this event,
for events where the clock counts UP.

```
@MainActor class CPNowPlayingSportsClock
```

## Overview

Or, a representation of the amount of time remaining in the event,
or a section of the event (period/quarter/etc.) for events where the
clock counts DOWN.

## Topics

### Initializers

[`init?(coder: NSCoder)`](/documentation/CarPlay/CPNowPlayingSportsClock/init(coder:))

[`init(elapsedTime: TimeInterval, paused: Bool)`](/documentation/CarPlay/CPNowPlayingSportsClock/init(elapsedTime:paused:))

Represents a duration of time that has elapsed so far in this event, or play period of the event (quarter/inning/period).

[`init(timeRemaining: TimeInterval, paused: Bool)`](/documentation/CarPlay/CPNowPlayingSportsClock/init(timeRemaining:paused:))

Represents an amount of time remaining in the event, or play period of the event (quarter/inning/period).

### Instance Properties

[`var countsUp: Bool`](/documentation/CarPlay/CPNowPlayingSportsClock/countsUp)

If true, the timer is counting UP, so as to indicate an amount of time elapsed
so far in this event.

[`var isPaused: Bool`](/documentation/CarPlay/CPNowPlayingSportsClock/isPaused)

Whether the clock should be paused, e.g. due to a stoppage in play.

[`var timeValue: TimeInterval`](/documentation/CarPlay/CPNowPlayingSportsClock/timeValue)

The time value in the clock; either elapsed time or time remaining.

## Relationships

### Conforms To

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

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

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

### 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)