Calculate Time Duration

I simply use a Google sheet having 3 columns
start time
end time
result (sheet calculation of end time - start time)

In my code, I update start time and end time and read result. It always works and the code becomes simple.