Hi, I'm trying to use time measurement in a test application on Windows. Therefore I use the DispatchTime.now() function like this:
let timeBefore = DispatchTime.now()
While searching online all examples used the function like this. Now I'm getting an error while compiling:
←[1msrc/main.swift:115:26: ←[0m←[0;1;31merror: ←[0m←[1mcannot find 'DispatchTime' in scope
←[0m let timeBefore = DispatchTime.now()
←[0;1;32m ^~~~~~~~~~~~
←[0mNMAKE : fatal error U1077: "swiftc": Rückgabe-Code "0x1"
Is there something missing? Like an import? Or is this an issue with Windows and if that's the case, is there a workaround or other function to use?