update table with total time