Change time recording method, only total time is sent to database