What are the imports to use ContinuousClock() in Swift 5.7/Xcode 14 or if not an import, another means for it to compile successfully

95 views Asked by At

Am trying to use the new ContinuousClock feature in Swift 5.7 using Xcode 14.0 (14A309) in a command line app with with the statement

let clock = ContinuousClock()

I get the following error:

Cannot find 'ContinuousClock' in scope

Is there an import missing (I'm importing Foundation)? The apple docs show its in Swift Standard Library which isn't really an import..That doc page also list it as beta, but the release announcement shows it as implemented.

Clues?

0

There are 0 answers