I\'m trying to determine which approach to removing a string is the fastest.
I simply get the start and end time a
You can use the Stopwatch class.
The Stopwatch measures elapsed time by counting timer ticks in the underlying timer mechanism. If the installed hardware and operating system support a high-resolution performance counter, then the Stopwatch class uses that counter to measure elapsed time.
var sw = new Stopwatch();
sw.Start();
// ...
sw.Stop();