Skip to content

Higher-precision realTime for Clock - #2529

Closed
armanbilge wants to merge 1 commit into
typelevel:series/3.xfrom
armanbilge:feature/clock-accurate-realtime
Closed

Higher-precision realTime for Clock#2529
armanbilge wants to merge 1 commit into
typelevel:series/3.xfrom
armanbilge:feature/clock-accurate-realtime

Conversation

@armanbilge

Copy link
Copy Markdown
Member

An alternative approach to #2416.

This adds a realTime overload to Clock that enables the user to request the result in a particular TimeUnit. Then, the implementer makes a best-effort to return a result matching the precision of that TimeUnit. This enables a default implementation in terms of the current realTime with only millisecond accuracy.

If we're happy with this strategy, I'll go ahead and finish this PR by adding implementations for JVM and JS.

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.

1 participant