Method to get keep track of current time; for caching purposes