Added api method to get the current time