Compare commits
4 Commits
9eb016e8ec
...
9722d62c61
| Author | SHA1 | Date |
|---|---|---|
|
|
9722d62c61 | |
|
|
071d1cac3c | |
|
|
0556b16079 | |
|
|
310734d2f8 |
|
|
@ -16,3 +16,10 @@ jobs:
|
|||
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
|
||||
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
|
||||
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
|
||||
|
||||
macos-tests:
|
||||
name: macOS tests
|
||||
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
|
||||
with:
|
||||
runner_pool: nightly
|
||||
build_scheme: swift-metrics-Package
|
||||
|
|
|
|||
|
|
@ -24,3 +24,10 @@ jobs:
|
|||
cxx-interop:
|
||||
name: Cxx interop
|
||||
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
|
||||
|
||||
macos-tests:
|
||||
name: macOS tests
|
||||
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
|
||||
with:
|
||||
runner_pool: general
|
||||
build_scheme: swift-metrics-Package
|
||||
|
|
|
|||
|
|
@ -16,10 +16,16 @@
|
|||
// https://github.com/swiftlang/swift/issues/79285
|
||||
|
||||
@_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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in New Issue