added getCurrentTime() function in TimeParser