Fixed #82

Created a utility class for time related helper functions and moved non
time logging specific code from TimerBase. Added test cases.