We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d47061 + d30366f commit ceeceaaCopy full SHA for ceeceaa
stdlib/public/Darwin/Dispatch/Schedulers+DispatchQueue.swift
@@ -45,8 +45,8 @@ extension DispatchTime /* : Strideable */ {
45
typealias Stride = DispatchTimeInterval
46
47
public func distance(to other: DispatchTime) -> DispatchTimeInterval {
48
- let lhs = other.rawValue
49
- let rhs = rawValue
+ let lhs = other.uptimeNanoseconds
+ let rhs = uptimeNanoseconds
50
if lhs >= rhs {
51
return DispatchTimeInterval.nanoseconds(Int(lhs - rhs))
52
} else {
0 commit comments