Reputation: 8669
Does microsoft offer any means of simulating latency on .net? They do have it for XNA, but I cannot find it for .net framework
http://msdn.microsoft.com/en-us/library/bb975762.aspx
Upvotes: 0
Views: 842
Reputation: 21178
I simply hook up Fiddler and run all of my IP traffic through it. There is an option in under Rules -> Performance to Simulate Modem Speeds. You can actually adjust this in the config file for Fiddler should you wish to make it even slower than 56kbps.
Upvotes: 4
Reputation: 13350
Why not simulate latency when and where you need it? If you have enough control over the code you're using you could insert a call to
Threading.Thread.Sleep()
to simulate latency if it works with what you're doing. I've used it before to manually insert latency to test out a parallel email dispatching class (dispatches by batches). It might work for your code as well.
Upvotes: 0