@@ -21,12 +21,12 @@ import Darwin
21
21
@_exported import Instrumentation
22
22
@_exported import InstrumentationBaggage
23
23
24
- public protocol TracerInstantProtocol : Comparable , Hashable , Sendable {
24
+ public protocol TracerInstant : Comparable , Hashable , Sendable {
25
25
/// Representation of this instant as the number of nanoseconds since UNIX Epoch (January 1st 1970)
26
26
var nanosecondsSinceEpoch : UInt64 { get }
27
27
}
28
28
29
- extension TracerInstantProtocol {
29
+ extension TracerInstant {
30
30
/// Representation of this instant as the number of milliseconds since UNIX Epoch (January 1st 1970)
31
31
@inlinable
32
32
public var millisecondsSinceEpoch : UInt64 {
@@ -46,7 +46,7 @@ extension TracerInstantProtocol {
46
46
/// especially when the system is already using some notion of simulated or mocked time, such that traces are
47
47
/// expressed using the same notion of time.
48
48
public protocol TracerClock {
49
- associatedtype Instant : TracerInstantProtocol
49
+ associatedtype Instant : TracerInstant
50
50
51
51
var now : Self . Instant { get }
52
52
}
@@ -59,7 +59,7 @@ public struct DefaultTracerClock: TracerClock {
59
59
// empty
60
60
}
61
61
62
- public struct Timestamp : TracerInstantProtocol {
62
+ public struct Timestamp : TracerInstant {
63
63
public let nanosecondsSinceEpoch : UInt64
64
64
65
65
public init ( nanosecondsSinceEpoch: UInt64 ) {
0 commit comments