In my written will I have defined a clear timeframe. If I have not recovered by a measurable amount (GCS) in a timeframe of 4 weeks, it's time for me to go.
Edit: note this might be different for you. You are the only one who can make that call. You can also decide that you want to be kept alive as long as possible. But then at least your loved ones know that that's what you wanted.