Stopwatch

A .NET class that measures elapsed time accurately, used to time a piece of code.

In more detail

Stopwatch.StartNew() starts one and Elapsed reads it. It is fine for demonstrations, but real performance comparisons need a benchmark tool.

Related terms

Taught in

References