updated get_time function for yo_main