added time method to util