I'm playing with Swift for the first time and have some decent programs running under Ubuntu and on a Raspberry Pi but I cannot find a way to measure elapsed time. My first thought is to read the unix time but I cannot see it in any API and haven't figured out the FFI yet.
How should I measure elapsed time in Swift code on Ubuntu and Raspberry Pi?