I have a function enclosed in try catch that I would like to redo if there was an exception but time from start of the function is less than 1 hour. How to implement this, should I use some sort of loop?
public void myFunct()
{
    // start timer
    try
    {
        // do some work
    }
    catch (Exception ex)
    {
        // if timer less than 1 hour, go to start of try
    }
}
 
    