For some testing I\'m doing I need a C# function that takes around 10 seconds to execute. It will be called from an ASPX page, but I need the function to eat up CPU time on
Just use Thread.Sleep(number of milliseconds here); You will have to add using System.Threading;
Thread.Sleep(number of milliseconds here);
using System.Threading;