Repository navigation
How to operate VirtualTimeScheduler with NodaTime #2196
Closed
mwpowellhtx
started this conversation in
Ideas
Replies: 2 comments 14 replies
|
Hi! Glad you find VirtualTime interesting - I'm a firm believer that it's one of Rx's superpowers 👊 - most people use it in test scenarios - and this is covered in the Intro to Rx .NET book here: https://introtorx.com/chapters/testing-reactive-extensions-for-dotnet BUT we've found really good use cases for using it to run "simulations" where rather than having to wait for real time to process, we can use virtual time to process historic data for "what if" type analysis. So, what would NodaTime bring to the party that isn't already covered by the existing API? |
14 replies
|
Overall, at present, I think I have what I need to move forward. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The prima facie idea of a
VirtualTimeSchedulerseems interesting. Is it possible to use that using aNodaTimesubstrate? That is, perhaps leveragingInstantor perhapsDuration, just spit balling there, throwing mud on the wall. Whatever theTAbsoluteandTRelativeshould be, along these lines.TAbsoluteof course beingwhere TAbsolute : IComparable<TAbsolute>, which I think eitherDurationorInstantwould be. Not sure what, if anything,TRelativehas to be, presumably as a function of a periodicTAbsolute.All reactions