Converted timer code from c style to c++.
Merge pull request #16 from akumetsuv/classy-timer

Converted timer code from c style to c++.