What operation could I uses that would simulate a relatively costly process
public void SimulateLongProcess()
{
//Do Something that takes a few seconds to perform on a quadcode CPU
}
I want to avoid any thread waiting or so, neither involve IO. Some Math operation could do…
Not sure what exactly you need. You may do the following, on my machine it takes around 2900 ms. This code will not ensure the exact execution time, the execution time will differ on different machines. You may want to tweak it to your need.