My implementation of a stopwatch in Swift