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

#697: Added "setNow" #698

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

#697: Added "setNow" #698

wants to merge 2 commits into from

Conversation

J00nz
Copy link

@J00nz J00nz commented Dec 18, 2024

Added the ability to override the internal "now" function using the "setNow" function.

It simply takes the new function you want to override the default "performance.now" implementation.

Useful when you want to control the flow of time on a global scale in a dynamic manner.

@trusktr
Copy link
Member

trusktr commented Dec 18, 2024

Hello @J00nz, looks good! Can you mention this in the guide? Then it will be good to go.

@trusktr
Copy link
Member

trusktr commented Dec 19, 2024

I'll try to get to it tomorrow if you haven't already and then we'll get it in. :)

@J00nz
Copy link
Author

J00nz commented Dec 19, 2024

Great!
I added a section in the user-guide, I do however not write chinese, so perhaps it would be good to get help with that 🙏

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