Simplification of GetTime()

Simplification of the code