Skip to content

Commit

Permalink
Add a property Float80.
Browse files Browse the repository at this point in the history
  • Loading branch information
YOCKOW committed May 28, 2020
1 parent 900e902 commit 1fde22b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/TimeSpecification/TimeSpecification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ extension TimeSpecification {
/// Double representation of the time.
@inlinable
public var doubleValue: Double { return Double(self.nanoseconds) * 1.0E-9 + Double(self.seconds) }

#if arch(i386) || arch(x86_64)
/// Float80 representation of the time.
@inlinable
public var float80Value: Float80 {
return Float80(self.nanoseconds) * 1.0E-9 + Float80(self.seconds)
}
#endif
}

extension TimeSpecification: CustomStringConvertible, CustomDebugStringConvertible {
Expand Down

0 comments on commit 1fde22b

Please sign in to comment.