Skip to content

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

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Add nanoseconds to instant protocol #114

merged 3 commits into from
Apr 3, 2023

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Mar 31, 2023

Motivation:

we have nanoseconds precision on most platforms so lets expose it.

resolves #105

@ktoso
Copy link
Member Author

ktoso commented Mar 31, 2023

Also resolves #103 by removing unused protocol

@ktoso ktoso force-pushed the wip-addnanoseconds branch from 56b1e5c to 343a700 Compare March 31, 2023 03:39
public static func /= (_ lhs: inout Self, _ rhs: Int) {
lhs = lhs / rhs
}
public protocol TracerInstantProtocol: Comparable, Hashable, Sendable {
Copy link
Contributor

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?

Copy link
Member Author

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

@ktoso ktoso force-pushed the wip-addnanoseconds branch from d861a22 to 4f63ee9 Compare March 31, 2023 06:29
@ktoso ktoso force-pushed the wip-addnanoseconds branch from a09547a to 4f63ee9 Compare April 3, 2023 11:40
ktoso added 3 commits April 3, 2023 20:40
**Motivation:**

we have nanoseconds precision on most platforms so lets expose it.
**Motivation:**
We're aggresively removing the Protocol suffixes

**Result:**
cleaner API
@ktoso ktoso force-pushed the wip-addnanoseconds branch from 4f63ee9 to 15ba1cf Compare April 3, 2023 11:41
@ktoso
Copy link
Member Author

ktoso commented Apr 3, 2023

Sweet, thanks folks; moving on then

@ktoso ktoso merged commit bb7fa3b into main Apr 3, 2023
@ktoso ktoso deleted the wip-addnanoseconds branch April 3, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offer nanos since Epoch
5 participants