Add debug msgs for timing different processes.

Add a Timer class.