Closed
Description
Description
No response
Reproduction
@main
public struct App {
public static func main() async throws {
let clock = ContinuousClock.continuous
let dur = try await clock.measure {
try await Task.sleep(for: .seconds(0.1))
}
print("Slept for: \(dur)")
}
}
Output:
Slept for: 64.1733749 seconds
Expected behavior
Task sleep for 0.1 second.
Environment
Swift version 5.10-dev (LLVM 7c3b53ecaad54fb, Swift ebaa8c6)
Target: x86_64-unknown-windows-msvc
Additional information
No response
Metadata
Metadata
Assignees
Labels
Area → standard library: The `Concurrency` module under the standard library umbrellaPlatform: WindowsA deviation from expected or documented behavior. Also: expected but undesirable behavior.Area: Standard library umbrellaArea → standard library → Concurrency: Time APIsBug: Unexpected behavior or incorrect output