Skip to content
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

Use platform-dependent implementation of Clock.realTime #1461

Merged
merged 1 commit into from
Dec 12, 2020

Conversation

sergeykolbasov
Copy link

As discussed in #1460

@sergeykolbasov sergeykolbasov force-pushed the instant-clock branch 2 times, most recently from dcec865 to de49624 Compare November 28, 2020 23:54
@sergeykolbasov
Copy link
Author

@djspiewak Hello, any thoughts on this?

@djspiewak
Copy link
Member

Sorry! This somehow fell off my radar in the shuffle. This looks very good! Would you be interested in looking into bringing these improvements to the series/3.x branch as well?

@djspiewak djspiewak merged commit 940f855 into typelevel:series/2.x Dec 12, 2020
@sergeykolbasov
Copy link
Author

No problem.

Sure can do for 3.x, although last time I checked there was no actual implementation of clocks there. Is it supposed to be the same?

@djspiewak
Copy link
Member

Clock is defined as a typeclass, and the implementation is in IO and SyncIO (in CE3). 😃 Just a reorganization, not a removal.

brendanmaguire added a commit to brendanmaguire/cats-effect that referenced this pull request Oct 16, 2021
…the JVM

* Use `java.time.Instant` to provide microsecond precision for `nowMicros`
* Use `nowMicros` instead of `nowMillis` to determine the real time

This is a follow up to typelevel#1461
brendanmaguire added a commit to brendanmaguire/cats-effect that referenced this pull request Mar 20, 2022
…the JVM

* Use `java.time.Instant` to provide microsecond precision for `nowMicros`
* Use `nowMicros` instead of `nowMillis` to determine the real time
* Provide default implementation of `Scheduler#nowMicros`

This is a follow up to typelevel#1461
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.

2 participants