improved performance

added timer and fixed the sendDiff infinite loop