scientistproject / Scientist.net

A .NET library for carefully refactoring critical paths. It's a port of GitHub's Ruby Scientist library
MIT License
1.47k stars 95 forks source link

Timer helper #7

Closed darcythomas closed 8 years ago

darcythomas commented 8 years ago

I have created a timer helper class.

Usage:


Chrono chrono;
using ( Chronometer.New(out chrono))
{
       //code to test execution time
}

Console.WriteLine($"Time taken: {chrono.Timespan.Ticks} (in Ticks)");

I also had some compile errors because the namespace was missing from the unit test files (fixed) Not sure what that is about

haacked commented 8 years ago

There's still some whitespace issues with extraneous newlines and tabs instead of spaces. Mind cleaning those up?

darcythomas commented 8 years ago

@Haacked Ok I think I have fixed up those issues

haacked commented 8 years ago

I'm going to go ahead and close this now. Thanks for the effort, but I don't think we need this yet.