-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
For certain time-based programs, it'd be useful to be able to set the virtual time so that new Date() and Date.now() can return predictable and setable values.
Describe the solution you'd like
Have a function to set the time, like timeweb.setVirtualTime or timeweb.virtual.setTime (if using the virtual namespace)
Describe alternatives you've considered
None
Additional context
timeweb currently sets the initial virtual time used for Dates based off of the realtime time. Initial running page time is set to zero.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request