Moved the terminal timer to lcg.utils; so that it can be reused.