Use time in PID calculations