Implemented getCurrentTime() library function