Added function for getting relative ms. Added logic for measuring current download and upload speed.