Add interface to record download lenth and speed