Skip to content

Commit

Permalink
Simplify BenchmarkClock slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
hassila committed Nov 29, 2022
1 parent 21e3b44 commit e19fd02
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Sources/DateTime/BenchmarkClock.swift
Expand Up @@ -30,23 +30,6 @@ public struct BenchmarkClock {
internal init(_value: Swift.Duration) {
self._value = _value
}

public init(secondsComponent: Int64, attosecondsComponent: Int64) {
self._value = Swift.Duration(secondsComponent: secondsComponent, attosecondsComponent: attosecondsComponent)
}

@available(*, deprecated, renamed: "seconds")
public func secondsSinceEpoch() -> Int64 {
return self._value.components.seconds
}

public func seconds() -> Int64 {
return self._value.components.seconds
}

public func attoseconds() -> Int64 {
return self._value.components.attoseconds
}
}

public init() {}
Expand Down

0 comments on commit e19fd02

Please sign in to comment.