-
Notifications
You must be signed in to change notification settings - Fork 36
Add nanoseconds to instant protocol #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also resolves #103 by removing unused protocol |
56b1e5c
to
343a700
Compare
Sources/Tracing/TracingTime.swift
Outdated
public static func /= (_ lhs: inout Self, _ rhs: Int) { | ||
lhs = lhs / rhs | ||
} | ||
public protocol TracerInstantProtocol: Comparable, Hashable, Sendable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the two last places where we have the Protocol
suffix. Do we want to get rid of it entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think we can 👍
I'll do this in this PR actually. Implementations tend to be called Timestamp or something like that after all
d861a22
to
4f63ee9
Compare
a09547a
to
4f63ee9
Compare
**Motivation:** we have nanoseconds precision on most platforms so lets expose it.
**Motivation:** We're aggresively removing the Protocol suffixes **Result:** cleaner API
4f63ee9
to
15ba1cf
Compare
Sweet, thanks folks; moving on then |
Motivation:
we have nanoseconds precision on most platforms so lets expose it.
resolves #105