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

Work around https://github.com/sebcrozet/instant/issues/49 #2094

Merged
merged 2 commits into from May 12, 2023

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented May 11, 2023

Even though instant should work on wasm, elapsed is broken. See:

We would like to switch to web-time, but that's broken in a different way. See issues in:

Fortunately elapsed isn't all that magical, so this is a good enough stop-gap for the time being.

Checklist

PR Build Summary: https://build.rerun.io/pr/2094

@jleibs jleibs marked this pull request as ready for review May 11, 2023 23:17
@jleibs jleibs added the 🕸️ web regarding running the viewer in a browser label May 11, 2023
@jleibs jleibs mentioned this pull request May 11, 2023
6 tasks
Comment on lines 10 to 15
// NOTE: Even though `instant` should work on wasm, `elapsed` is broken.
// See: https://github.com/sebcrozet/instant/issues/49
// We would like to switch to `web-time`, but that's broken in a different way
// See issues in: https://github.com/rerun-io/rerun/pull/2093
//
// So we implement what elapsed is supposed to do ourselves.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is a comment about the implementation and so should be within the function, not outside it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh; good call. I had started with two separate implementations so this made more sense, but will move into the function.

@jleibs jleibs merged commit 0a19555 into main May 12, 2023
15 checks passed
@jleibs jleibs deleted the jleibs/workaround_instance_ellapsed branch May 12, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants