Skip to content

Commit

Permalink
If FoundationEssentials is available use it
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 8, 2025
1 parent 726392c commit 310734d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/Metrics/Metrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@
//===----------------------------------------------------------------------===//

@_exported import CoreMetrics
import Foundation
import Dispatch

@_exported import class CoreMetrics.Timer

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

extension Timer {
/// Convenience for measuring duration of a closure.
///
Expand Down

0 comments on commit 310734d

Please sign in to comment.