Skip to content

Use platform-dependent implementation of Clock.realTime#1461

Merged
djspiewak merged 1 commit into
typelevel:series/2.xfrom
sergeykolbasov:instant-clock
Dec 12, 2020
Merged

Use platform-dependent implementation of Clock.realTime#1461
djspiewak merged 1 commit into
typelevel:series/2.xfrom
sergeykolbasov:instant-clock

Conversation

@sergeykolbasov

Copy link
Copy Markdown

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
Copy Markdown
Author

@djspiewak Hello, any thoughts on this?

@djspiewak

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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