added getCurrentTime function in utilities