Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Aug 20, 2024
1 parent 517b143 commit 76ad1a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ let package = Package(
name: "NetTime",
platforms: [
.macOS(.v14), // macOS 14 and later
.iOS(.v17), // iOS 17 and later
.iOS(.v17) // iOS 17 and later
],
products: [
.library(
name: "NetTime",
targets: ["NetTime"]),
targets: ["NetTime"])
],
dependencies: [
.package(url: "https://github.com/sentryco/Logger.git", branch: "main"),
.package(url: "https://github.com/sentryco/Logger.git", branch: "main")
],
targets: [
.target(
name: "NetTime",
dependencies: ["Logger"]),
.testTarget(
name: "NetTimeTests",
dependencies: ["NetTime", "Logger"]),
dependencies: ["NetTime", "Logger"])
]
)
)
4 changes: 2 additions & 2 deletions Tests/NetTimeTests/util/TimeMeasure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ internal final class TimeMeasure {
* The number of nano-seconds in a second
* - Description: This constant is used to convert nanoseconds to seconds for time measurement purposes.
*/
fileprivate static let nanoToSecond: Double = 1_000_000_000
fileprivate static let nanoToSecond: Double = 1_000_000_000
/**
* A closure that takes no parameters and returns nothing
* - Description: This typealias defines a closure type named Operation that takes no parameters and throws an error if it fails. It is used in the timeElapsed methods to measure the execution time of a given operation.
*/
internal typealias Operation = () throws -> Void
internal typealias Operation = () throws -> Void
/**
* Measures how long a closure takes to complete
* - Description: This method measures the execution time of a given closure in seconds. It takes a closure as a parameter, executes it, and returns the time taken for the closure to complete its execution.
Expand Down

0 comments on commit 76ad1a3

Please sign in to comment.