Contents

attoseconds

The number of attoseconds represented by this Duration.

Declaration

var attoseconds: Int128 { get }

Discussion

This property provides direct access to the underlying number of attoseconds that the current Duration represents.

let d = Duration.seconds(1)
print(d.attoseconds) // 1_000_000_000_000_000_000