Skip to content

Instance Property

totalSeconds

The duration as a floating-point number of seconds.

var totalSeconds: Double { get }

Discussion

Duration only exposes integer components (whole seconds + attoseconds); this combines them into a single Double suitable for JSON output and logging.