compare_time() function created