Setting Conditions for duration of time

I am making a table and would like to show the total number of hours/minutes/seconds that the value of my table shows values of 1 or greater. There’s sometimes gaps greater than 5 mins. I don’t want to use that time gap in my calculations. I’m trying to grab a years worth of data and there’s gaps and it’s still calculating the buffer zones. Thank you

duplicate