Skip to content

JoeStead/StopwatchTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super simple timer for C#

Adds a stopwatch around code. By default, it will write to stdout. If you would like to log it somewhere else, use the overload and pass in an action.

Usage:

using (new CodeStopWatch("The thing I'm testing"))
{
    //your code
}

//with an action
using (new CodeStopWatch("The thing I'm testing", s => _logger.Log(s)))
{
    //your code
}

That's it!

About

Instrument your code with stopwatches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages