Added SimpleTimer class.

Some of the most complex code I've ever written.