I have AVAudioPlayer. In first session(when user pauses audio) I want to save my audio track time elapsed and time duration. And start playing the saved time in next session(like in iBooks app). What’s the best way to do this?

My code to show time in labels

```
@IBOutlet var timeElapsed: UILabel!
@IBOutlet var timeDuration: UILabel!

@IBAction func play(sender: AnyObject) {
    if !audioPlayer.isPlaying{
        audioPlayer.play()
        slider.maximumValue = Float(audioPlayer.duration)
        slider.value = 0.0
        timer = Timer(timeInterval: 0.0, target: self, selector: #selector(self.updateTime), userInfo: nil, repeats: true)
        RunLoop.main.add(timer!, forMode: .commonModes)
}

func updateTime() {

    let currentTime = Int(audioPlayer.currentTime)
    let minutes = currentTime/60
    let seconds = currentTime - minutes * 60

    let durationTime = Int(audioPlayer.duration) - Int(audioPlayer.currentTime)
    let minutes1 = durationTime/60
    let seconds1 = durationTime - minutes1 * 60
    timeElapsed.text = NSString(format: "%02d:%02d", minutes,seconds) as String
    timeDuration.text = NSString(format: "-%02d:%02d", minutes1,seconds1) as String
}

```