Skip to content

Commit

Permalink
created the speed test displayer
Browse files Browse the repository at this point in the history
  • Loading branch information
dishant-yadav committed Oct 1, 2022
1 parent 4eb0370 commit 92c5632
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file added Speed Test/__pycache__/speedtest.cpython-38.pyc
Binary file not shown.
18 changes: 18 additions & 0 deletions Speed Test/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from turtle import speed;
import speedtest;

speed = speedtest.Speedtest();

print("Speed Test\n");

print("Download Speed")
downlaodSpeed = speed.download() / 8 / 1024 / 1024;
downlaodSpeed = str(downlaodSpeed);
print(downlaodSpeed[0:3] + " MB/S\n");

print("Upload Speed")
uploadSpeed = str(downlaodSpeed);
print(uploadSpeed[0:3] + " MB/S\n");

print("Ping");
print(speed.results.ping);

0 comments on commit 92c5632

Please sign in to comment.