1. using (new CalculateTime("My method"))
  2. {
  3.     Thread.Sleep(5000);
  4. } //Outputs "My method took 5000 miliseconds to complete." here.