These packages are available as a package collection, usable in Xcode or SwiftPM.
Swift Clock reading the CPU hardware counter (TSC, CNTVCT) for low-overhead timestamps
1 package.