Added a stopwatch class with tests

Hi,

I have been using this stopwatch class in my own projects for a while now and I thought that it could be useful for others as well.

It's fully unit tested.