Adding timer class to do simple time measurements