add method to get current time