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
Arguably the simplest such function is this:
public void Slow() { var end = DateTime.Now + TimeSpan.FromSeconds(10); while (DateTime.Now < end) /* nothing here */ ; }