A high performance timer

Namespace:  MbUnit.Core.Monitoring
Assembly:  MbUnit.Framework (in MbUnit.Framework.dll) Version: 2.4.2.1514 (2.4.2.1514)

Syntax

C#
public sealed class TimeMonitor : IMonitor
Visual Basic (Declaration)
Public NotInheritable Class TimeMonitor _
	Implements IMonitor

Remarks

High Precision Timer based on Win32 methods.

Examples

This example times the execution of a method:
CopyC#
TimeMonitor timer = new TimeMonitor();
timer.Start();
   ... // execute code
timer.Stop();

Console.WriteLine("Duration: {0}",timer.Duration);

Inheritance Hierarchy

System..::.Object
  MbUnit.Core.Monitoring..::.TimeMonitor

See Also