1. oakio
  2. Devme.Diagnostics

Overview

HTTPS SSH

Getting Started

Install package using nuget command:

$ Install-Package Devme.Diagnostics

Write the following code:

using (StopwatchManager.Start(elapsed => Console.WriteLine("Elapsed: {0}", elapsed)))
{
    Thread.Sleep(12345); // some long operation
}

Get the console output result:

Elapsed: 00:00:12.345

See more examples here!