Added time functions get_current_time and time_diff