Simple timer class for profiling code execution time