---
title: sampleTime
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudiotime/sampletime
---

# sampleTime

The time as a number of audio samples that the current audio device tracks.

## Declaration

```swift
var sampleTime: AVAudioFramePosition { get }
```

## See Also

### Getting Sample Rate Information

- [sampleRate](avfaudio/avaudiotime/samplerate.md)
- [isSampleTimeValid](avfaudio/avaudiotime/issampletimevalid.md)
