getTime refactoring

Some refactoring of getTime() functions.
If programmer includes gettime.h then he can expect that this file will provide getTime() functions, and no matter how these functions are implemented.