Skip to content

Instantly share code, notes, and snippets.

@SuperLeo23
Created December 8, 2021 14:30
Show Gist options
  • Save SuperLeo23/1d8d2ac8475e923c66b856deb3b8a81c to your computer and use it in GitHub Desktop.
Save SuperLeo23/1d8d2ac8475e923c66b856deb3b8a81c to your computer and use it in GitHub Desktop.
Simple script to get your download or upload time even if it isn't provided by the application youre dowloading from
import datetime
left = input("Left (MB): ")
speed = input("Speed (MB/S): ")
result = (int(left) / int(speed))
if (result >= 3600):
result = result / 60 / 60
print(round(result, 2), " Hours Left")
elif (result >= 60):
result = result / 60
print(round(result, 2), " Minutes Left")
else:
print(round(result, 2), " Seconds Left")
input("Press enter to exit ;)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment