---
title: currentTime()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avplayer/currenttime()
---

# currentTime()

Returns the current time of the current player item.

## Declaration

```swift
nonisolated func currentTime() -> CMTime
```

## Return Value

Return Value The current time of the current player item.

## Discussion

Discussion This property isn’t key-value observable. To observe the player’s time, use addPeriodicTimeObserver(forInterval:queue:using:) or addBoundaryTimeObserver(forTimes:queue:using:).

## See Also

### Observing playback time

- [addPeriodicTimeObserver(forInterval:queue:using:)](avfoundation/avplayer/addperiodictimeobserver(forinterval:queue:using:).md)
- [addBoundaryTimeObserver(forTimes:queue:using:)](avfoundation/avplayer/addboundarytimeobserver(fortimes:queue:using:).md)
- [removeTimeObserver(_:)](avfoundation/avplayer/removetimeobserver(_:).md)
